net.jradius.dictionary.vsa_acc.Attr_AccCallbackMode Maven / Gradle / Ivy
The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Thu, 5 Jan 2017 15:56:13 +0200
package net.jradius.dictionary.vsa_acc;
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: Acc-Callback-Mode
* Attribute Type: 26
* Vendor Id: 5
* VSA Type: 36
* Value Type: NamedValue
* Possible Values:
*
* - User-Auth (0)
*
- User-Specified-E-164 (3)
*
- CBCP-Callback (6)
*
- CLI-Callback (7)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_AccCallbackMode extends VSAttribute
{
public static final String NAME = "Acc-Callback-Mode";
public static final int VENDOR_ID = 5;
public static final int VSA_TYPE = 36;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long UserAuth = new Long(0L);
public static final Long UserSpecifiedE164 = new Long(3L);
public static final Long CBCPCallback = new Long(6L);
public static final Long CLICallback = new Long(7L);
@SuppressWarnings("serial")
protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable
{
public Long[] knownValues = { new Long(0L),new Long(3L),new Long(6L),new Long(7L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("User-Auth".equals(name)) return new Long(0L);
if ("User-Specified-E-164".equals(name)) return new Long(3L);
if ("CBCP-Callback".equals(name)) return new Long(6L);
if ("CLI-Callback".equals(name)) return new Long(7L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(0L).equals(value)) return "User-Auth";
if (new Long(3L).equals(value)) return "User-Specified-E-164";
if (new Long(6L).equals(value)) return "CBCP-Callback";
if (new Long(7L).equals(value)) return "CLI-Callback";
return null;
}
};
public static transient 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_AccCallbackMode()
{
setup();
}
public Attr_AccCallbackMode(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy