All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jradius.dictionary.vsa_starent.Attr_SNCauseCode Maven / Gradle / Ivy

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_starent;

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: SN-Cause-Code
* Attribute Type: 26
* Vendor Id: 8164
* VSA Type: 267
* Value Type: NamedValue
* Possible Values:
*
    *
  • Normal_End_Of_Session (0) *
  • Successful_Transaction (1) *
  • End_Of_Subscriber_Dialog (2) *
  • 3XX_Redirection (3) *
  • 4XX_Request_Failure (4) *
  • 5XX_Server_Failure (5) *
  • 6XX_Global_Failure (6) *
  • Unspecified_Error (7) *
  • Unsuccessful_Session_Setup (8) *
  • Internal_Error (9) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_SNCauseCode extends VSAttribute { public static final String NAME = "SN-Cause-Code"; public static final int VENDOR_ID = 8164; public static final int VSA_TYPE = 267; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long NormalEndOfSession = new Long(0L); public static final Long SuccessfulTransaction = new Long(1L); public static final Long EndOfSubscriberDialog = new Long(2L); public static final Long _3XXRedirection = new Long(3L); public static final Long _4XXRequestFailure = new Long(4L); public static final Long _5XXServerFailure = new Long(5L); public static final Long _6XXGlobalFailure = new Long(6L); public static final Long UnspecifiedError = new Long(7L); public static final Long UnsuccessfulSessionSetup = new Long(8L); public static final Long InternalError = new Long(9L); protected class NamedValueMap implements NamedValue.NamedValueMap { public Long[] knownValues = { new Long(0L),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)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("Normal_End_Of_Session".equals(name)) return new Long(0L); if ("Successful_Transaction".equals(name)) return new Long(1L); if ("End_Of_Subscriber_Dialog".equals(name)) return new Long(2L); if ("3XX_Redirection".equals(name)) return new Long(3L); if ("4XX_Request_Failure".equals(name)) return new Long(4L); if ("5XX_Server_Failure".equals(name)) return new Long(5L); if ("6XX_Global_Failure".equals(name)) return new Long(6L); if ("Unspecified_Error".equals(name)) return new Long(7L); if ("Unsuccessful_Session_Setup".equals(name)) return new Long(8L); if ("Internal_Error".equals(name)) return new Long(9L); return null; } public String getNamedValue(Long value) { if (new Long(0L).equals(value)) return "Normal_End_Of_Session"; if (new Long(1L).equals(value)) return "Successful_Transaction"; if (new Long(2L).equals(value)) return "End_Of_Subscriber_Dialog"; if (new Long(3L).equals(value)) return "3XX_Redirection"; if (new Long(4L).equals(value)) return "4XX_Request_Failure"; if (new Long(5L).equals(value)) return "5XX_Server_Failure"; if (new Long(6L).equals(value)) return "6XX_Global_Failure"; if (new Long(7L).equals(value)) return "Unspecified_Error"; if (new Long(8L).equals(value)) return "Unsuccessful_Session_Setup"; if (new Long(9L).equals(value)) return "Internal_Error"; return null; } }; public static NamedValueMap map = null; public void setup() { attributeName = NAME; attributeType = 26; vendorId = VENDOR_ID; vsaAttributeType = VSA_TYPE; setFormat("2,2"); attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap())); } public Attr_SNCauseCode() { setup(); } public Attr_SNCauseCode(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy