net.jradius.dictionary.vsa_redback.Attr_ServiceErrorCause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jradius-abfab-dictionary Show documentation
Show all versions of jradius-abfab-dictionary Show documentation
JRadius ABFAB Dictionary: FreeRADIUS 2.2.0 + RFC-to-be-7055
The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Fri, 29 Nov 2013 13:24:47 +0000
package net.jradius.dictionary.vsa_redback;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import net.jradius.packet.attribute.VSAttribute;
import net.jradius.packet.attribute.value.NamedValue;
/**
* Attribute Name: Service-Error-Cause
* Attribute Type: 26
* Vendor Id: 2352
* VSA Type: 193
* Value Type: NamedValue
* Possible Values:
*
* - Service-success (0)
*
- Unsupported-attribute (401)
*
- Missing-attribute (402)
*
- Invalid-request (404)
*
- Resource-unavailable (506)
*
- Generic-service-error (550)
*
- Service-not-found (551)
*
- Service-already-active (552)
*
- Service-accounting-disabled (553)
*
- Service-duplicate-parameter (554)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_ServiceErrorCause extends VSAttribute
{
public static final String NAME = "Service-Error-Cause";
public static final int VENDOR_ID = 2352;
public static final int VSA_TYPE = 193;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long Servicesuccess = new Long(0L);
public static final Long Unsupportedattribute = new Long(401L);
public static final Long Missingattribute = new Long(402L);
public static final Long Invalidrequest = new Long(404L);
public static final Long Resourceunavailable = new Long(506L);
public static final Long Genericserviceerror = new Long(550L);
public static final Long Servicenotfound = new Long(551L);
public static final Long Servicealreadyactive = new Long(552L);
public static final Long Serviceaccountingdisabled = new Long(553L);
public static final Long Serviceduplicateparameter = new Long(554L);
protected class NamedValueMap implements NamedValue.NamedValueMap
{
public Long[] knownValues = { new Long(0L),new Long(401L),new Long(402L),new Long(404L),new Long(506L),new Long(550L),new Long(551L),new Long(552L),new Long(553L),new Long(554L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("Service-success".equals(name)) return new Long(0L);
if ("Unsupported-attribute".equals(name)) return new Long(401L);
if ("Missing-attribute".equals(name)) return new Long(402L);
if ("Invalid-request".equals(name)) return new Long(404L);
if ("Resource-unavailable".equals(name)) return new Long(506L);
if ("Generic-service-error".equals(name)) return new Long(550L);
if ("Service-not-found".equals(name)) return new Long(551L);
if ("Service-already-active".equals(name)) return new Long(552L);
if ("Service-accounting-disabled".equals(name)) return new Long(553L);
if ("Service-duplicate-parameter".equals(name)) return new Long(554L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(0L).equals(value)) return "Service-success";
if (new Long(401L).equals(value)) return "Unsupported-attribute";
if (new Long(402L).equals(value)) return "Missing-attribute";
if (new Long(404L).equals(value)) return "Invalid-request";
if (new Long(506L).equals(value)) return "Resource-unavailable";
if (new Long(550L).equals(value)) return "Generic-service-error";
if (new Long(551L).equals(value)) return "Service-not-found";
if (new Long(552L).equals(value)) return "Service-already-active";
if (new Long(553L).equals(value)) return "Service-accounting-disabled";
if (new Long(554L).equals(value)) return "Service-duplicate-parameter";
return null;
}
};
public static NamedValueMap map = null;
public void setup()
{
attributeName = NAME;
attributeType = 26;
vendorId = VENDOR_ID;
vsaAttributeType = VSA_TYPE;
attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap()));
}
public Attr_ServiceErrorCause()
{
setup();
}
public Attr_ServiceErrorCause(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy