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

net.jradius.dictionary.Attr_RequestedLocationInfo 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 16:12:37 +0200

package net.jradius.dictionary;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

import net.jradius.packet.attribute.RadiusAttribute;
import net.jradius.packet.attribute.value.NamedValue;

/**
 * Attribute Name: Requested-Location-Info
* Attribute Type: 132
* Value Type: NamedValue
* Possible Values:
*
    *
  • Civix-Location (1) *
  • Geo-Location (2) *
  • Users-Location (4) *
  • NAS-Location (8) *
  • Future-Requests (16) *
  • None (32) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_RequestedLocationInfo extends RadiusAttribute { public static final String NAME = "Requested-Location-Info"; public static final long TYPE = 132; public static final long serialVersionUID = TYPE; public static final Long CivixLocation = new Long(1L); public static final Long GeoLocation = new Long(2L); public static final Long UsersLocation = new Long(4L); public static final Long NASLocation = new Long(8L); public static final Long FutureRequests = new Long(16L); public static final Long None = new Long(32L); @SuppressWarnings("serial") protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable { public Long[] knownValues = { new Long(1L),new Long(2L),new Long(4L),new Long(8L),new Long(16L),new Long(32L)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("Civix-Location".equals(name)) return new Long(1L); if ("Geo-Location".equals(name)) return new Long(2L); if ("Users-Location".equals(name)) return new Long(4L); if ("NAS-Location".equals(name)) return new Long(8L); if ("Future-Requests".equals(name)) return new Long(16L); if ("None".equals(name)) return new Long(32L); return null; } public String getNamedValue(Long value) { if (new Long(1L).equals(value)) return "Civix-Location"; if (new Long(2L).equals(value)) return "Geo-Location"; if (new Long(4L).equals(value)) return "Users-Location"; if (new Long(8L).equals(value)) return "NAS-Location"; if (new Long(16L).equals(value)) return "Future-Requests"; if (new Long(32L).equals(value)) return "None"; return null; } }; public static transient NamedValueMap map = null; public void setup() { attributeName = NAME; attributeType = 132; attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap())); } public Attr_RequestedLocationInfo() { setup(); } public Attr_RequestedLocationInfo(Serializable o) { setup(o); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy