|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jradius.packet.attribute.AttributeList
public class AttributeList
Represents the Attribute List of a packet. Supports singleton and lists of attribute values (building packets with serverl of the same attribute).
Constructor Summary | |
---|---|
AttributeList()
Default constructor |
Method Summary | |
---|---|
void |
add(AttributeList list)
Add an attribute list to this attribute list |
void |
add(RadiusAttribute a)
Add an attribute, defaulting to overwriting |
void |
add(RadiusAttribute a,
boolean overwrite)
Add an attribute with option to overwrite. |
void |
clear()
|
RadiusAttribute |
get(int type)
|
java.lang.Object |
get(int type,
boolean single)
|
RadiusAttribute |
get(java.lang.String name)
|
java.lang.Object |
get(java.lang.String name,
boolean single)
|
java.lang.Object[] |
getArray(int type)
Get all attributes of a certain type returned at an array |
java.util.List |
getAttributeList()
Returns the attribute hash as a list |
java.util.Map |
getMap()
|
int |
getSize()
|
void |
remove(int attributeType)
Removes attribute(s) by type |
void |
remove(RadiusAttribute a)
Removes attribute(s) by type |
void |
removeUnknown()
Removes all unknown (not in the configured JRadius Dictionary) attribtues. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean nonStandardAttrs,
boolean unknownAttrs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeList()
Method Detail |
---|
public void add(AttributeList list)
list
- The attribute list to addpublic void add(RadiusAttribute a)
a
- The attribute to addpublic void add(RadiusAttribute a, boolean overwrite)
a
- overwrite
- public void remove(RadiusAttribute a)
a
- RadiusAttribute to removepublic void remove(int attributeType)
attributeType
- The attribute type to removepublic void clear()
public int getSize()
public void removeUnknown()
public java.lang.Object get(int type, boolean single)
type
- The type of attribute to retrievesingle
- True if a only a single attribute can be returned;
false if a List of attributes is also ok
public RadiusAttribute get(int type)
public java.lang.Object get(java.lang.String name, boolean single) throws UnknownAttributeException
UnknownAttributeException
public RadiusAttribute get(java.lang.String name) throws UnknownAttributeException
UnknownAttributeException
public java.lang.Object[] getArray(int type)
type
- The type of attribute to find
public java.lang.String toString(boolean nonStandardAttrs, boolean unknownAttrs)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List getAttributeList()
public java.util.Map getMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |