net.jradius.dictionary.vsa_shiva.Attr_ShivaDisconnectReason 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_shiva;
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: Shiva-Disconnect-Reason
* Attribute Type: 26
* Vendor Id: 166
* VSA Type: 100
* Value Type: NamedValue
* Possible Values:
*
* - Remote (1)
*
- Error (2)
*
- Idle-Timeout (3)
*
- Session-Timeout (4)
*
- Admin-Disconnect (5)
*
- Dialback (6)
*
- Virtual-Connection (7)
*
- Bandwidth-On-Demand (8)
*
- Failed-Authentication (9)
*
- Preempted (10)
*
- Blocked (11)
*
- Tariff-Management (12)
*
- Backup (13)
*
*
* @author class net.jradius.freeradius.RadiusDictionary
*/
public final class Attr_ShivaDisconnectReason extends VSAttribute
{
public static final String NAME = "Shiva-Disconnect-Reason";
public static final int VENDOR_ID = 166;
public static final int VSA_TYPE = 100;
public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE;
public static final long serialVersionUID = TYPE;
public static final Long Remote = new Long(1L);
public static final Long Error = new Long(2L);
public static final Long IdleTimeout = new Long(3L);
public static final Long SessionTimeout = new Long(4L);
public static final Long AdminDisconnect = new Long(5L);
public static final Long Dialback = new Long(6L);
public static final Long VirtualConnection = new Long(7L);
public static final Long BandwidthOnDemand = new Long(8L);
public static final Long FailedAuthentication = new Long(9L);
public static final Long Preempted = new Long(10L);
public static final Long Blocked = new Long(11L);
public static final Long TariffManagement = new Long(12L);
public static final Long Backup = new Long(13L);
protected class NamedValueMap implements NamedValue.NamedValueMap
{
public Long[] knownValues = { new Long(1L),new Long(2L),new Long(3L),new Long(4L),new Long(5L),new Long(6L),new Long(7L),new Long(8L),new Long(9L),new Long(10L),new Long(11L),new Long(12L),new Long(13L)};
public Long[] getKnownValues() { return knownValues; }
public Long getNamedValue(String name)
{
if ("Remote".equals(name)) return new Long(1L);
if ("Error".equals(name)) return new Long(2L);
if ("Idle-Timeout".equals(name)) return new Long(3L);
if ("Session-Timeout".equals(name)) return new Long(4L);
if ("Admin-Disconnect".equals(name)) return new Long(5L);
if ("Dialback".equals(name)) return new Long(6L);
if ("Virtual-Connection".equals(name)) return new Long(7L);
if ("Bandwidth-On-Demand".equals(name)) return new Long(8L);
if ("Failed-Authentication".equals(name)) return new Long(9L);
if ("Preempted".equals(name)) return new Long(10L);
if ("Blocked".equals(name)) return new Long(11L);
if ("Tariff-Management".equals(name)) return new Long(12L);
if ("Backup".equals(name)) return new Long(13L);
return null;
}
public String getNamedValue(Long value)
{
if (new Long(1L).equals(value)) return "Remote";
if (new Long(2L).equals(value)) return "Error";
if (new Long(3L).equals(value)) return "Idle-Timeout";
if (new Long(4L).equals(value)) return "Session-Timeout";
if (new Long(5L).equals(value)) return "Admin-Disconnect";
if (new Long(6L).equals(value)) return "Dialback";
if (new Long(7L).equals(value)) return "Virtual-Connection";
if (new Long(8L).equals(value)) return "Bandwidth-On-Demand";
if (new Long(9L).equals(value)) return "Failed-Authentication";
if (new Long(10L).equals(value)) return "Preempted";
if (new Long(11L).equals(value)) return "Blocked";
if (new Long(12L).equals(value)) return "Tariff-Management";
if (new Long(13L).equals(value)) return "Backup";
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_ShivaDisconnectReason()
{
setup();
}
public Attr_ShivaDisconnectReason(Serializable o)
{
setup(o);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy