public class AttributeList extends Object implements Serializable
| Constructor and Description |
|---|
AttributeList()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
_add(RadiusAttribute a,
boolean overwrite) |
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() |
void |
copy(AttributeList list,
boolean pool) |
RadiusAttribute |
get(long type) |
Object |
get(long type,
boolean single) |
RadiusAttribute |
get(String name) |
Object |
get(String name,
boolean single) |
Object[] |
getArray(long type)
Get all attributes of a certain type returned at an array
|
List<RadiusAttribute> |
getAttributeList()
Returns the attribute hash as a list
|
Map<Long,Object> |
getMap() |
int |
getSize() |
Object |
getValue(long type) |
void |
remove(long 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.
|
String |
toString() |
String |
toString(boolean nonStandardAttrs,
boolean unknownAttrs) |
public void add(AttributeList list)
list - The attribute list to addpublic void copy(AttributeList list, boolean pool)
public void add(RadiusAttribute a)
a - The attribute to addpublic void _add(RadiusAttribute a, boolean overwrite)
public void add(RadiusAttribute a, boolean overwrite)
a - overwrite - public void remove(RadiusAttribute a)
a - RadiusAttribute to removepublic void remove(long attributeType)
attributeType - The attribute type to removepublic void clear()
public int getSize()
public void removeUnknown()
public Object get(long 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 okpublic RadiusAttribute get(long type)
public Object get(String name, boolean single) throws UnknownAttributeException
UnknownAttributeExceptionpublic RadiusAttribute get(String name) throws UnknownAttributeException
UnknownAttributeExceptionpublic Object getValue(long type)
public Object[] getArray(long type)
type - The type of attribute to findpublic String toString(boolean nonStandardAttrs, boolean unknownAttrs)
public List<RadiusAttribute> getAttributeList()
Copyright © 2017. All rights reserved.