|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jradius.packet.attribute.AttributeFactory
public final class AttributeFactory
The Attribute Factor. This factor builds the RADIUS attributes based on configured dictionaries.
Nested Class Summary | |
---|---|
static class |
AttributeFactory.VendorValue
|
Constructor Summary | |
---|---|
AttributeFactory()
|
Method Summary | |
---|---|
static RadiusAttribute |
attributeFromString(java.lang.String src)
Parses a string to create a RadiusAttribute. |
static java.util.LinkedHashMap |
getAttributeMap()
|
static java.util.LinkedHashMap |
getAttributeNameMap()
|
static int |
getTypeByName(java.lang.String aName)
The the integer type of a RadiusAttribute by name |
static java.util.LinkedHashMap |
getVendorMap()
|
static boolean |
loadAttributeDictionary(java.lang.String className)
Load an attribute dictionary |
static void |
loadAttributesFromString(AttributeList list,
java.lang.String src,
boolean beStrinct)
|
static RadiusAttribute |
newAttribute(AttributeDescription desc)
Create a new RadiusAttribute based on a AttributeDescription |
static RadiusAttribute |
newAttribute(int type,
byte[] value)
Creates a new RadiusAttribute |
static RadiusAttribute |
newAttribute(int vendor,
int type,
byte[] value,
int op)
Creates a new RadiusAttribute |
static RadiusAttribute |
newAttribute(java.lang.String aName)
Create a RadiusAttribute by name |
static RadiusAttribute |
newAttribute(java.lang.String aName,
java.lang.String aValue,
java.lang.String aOp)
Creates a new RadiusAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeFactory()
Method Detail |
---|
public static boolean loadAttributeDictionary(java.lang.String className)
className
- Name of the Java Class derived from AttributeDictionary
public static RadiusAttribute attributeFromString(java.lang.String src) throws RadiusException, UnknownAttributeException
src
- The source String
RadiusException
UnknownAttributeException
public static void loadAttributesFromString(AttributeList list, java.lang.String src, boolean beStrinct) throws RadiusException
RadiusException
public static RadiusAttribute newAttribute(int vendor, int type, byte[] value, int op)
vendor
- The VendorID of the attribute (if one)type
- The Attribute Typevalue
- The Attribute Valueop
- The Attribute Operator
public static RadiusAttribute newAttribute(int type, byte[] value)
type
- The type of the attributevalue
- The value of the attribute
public static RadiusAttribute newAttribute(java.lang.String aName) throws UnknownAttributeException
aName
- The name of the attribute to create
UnknownAttributeException
public static RadiusAttribute newAttribute(AttributeDescription desc) throws UnknownAttributeException
desc
- The RadiusDescription
UnknownAttributeException
public static RadiusAttribute newAttribute(java.lang.String aName, java.lang.String aValue, java.lang.String aOp) throws UnknownAttributeException
aName
- The name of the attribute to createaValue
- The value of the attributeaOp
- The "operator" of the attribute
UnknownAttributeException
public static int getTypeByName(java.lang.String aName) throws UnknownAttributeException
aName
- The name of the attribute
UnknownAttributeException
public static java.util.LinkedHashMap getAttributeMap()
public static java.util.LinkedHashMap getAttributeNameMap()
public static java.util.LinkedHashMap getVendorMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |