net.jradius.packet.attribute
Class RadiusAttribute
java.lang.Object
net.jradius.packet.attribute.RadiusAttribute
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Attr_UnknownAttribute, VSAttribute
public abstract class RadiusAttribute
- extends Object
- implements Serializable
The RADIUS Attribute. All radius attributes (as build by RadiusDictionary)
are derived from this abstract class.
- Author:
- David Bird
- See Also:
- Serialized Form
attributeType
protected long attributeType
attributeOp
protected int attributeOp
attributeValue
protected AttributeValue attributeValue
attributeName
protected String attributeName
recyclable
protected boolean recyclable
recycled
protected boolean recycled
overflow
protected boolean overflow
RadiusAttribute
public RadiusAttribute()
setup
public abstract void setup()
setup
protected void setup(Serializable value)
setup
protected void setup(Serializable o,
int op)
getType
public long getType()
- Returns:
- Returns the attribute type
getFormattedType
public long getFormattedType()
- Returns:
- Returns the (internal) formatted attribute type
getValue
public AttributeValue getValue()
- Returns:
- Returns the AttributeValue
getAttributeName
public String getAttributeName()
- Returns:
- Returns the name of the attribute
getAttributeOp
public int getAttributeOp()
- Returns:
- Returns the "operator" of the attribute
setAttributeOp
public void setAttributeOp(int attributeOp)
- Parameters:
attributeOp
- The new attribute "operator" to be set
setAttributeOp
public void setAttributeOp(String attributeOp)
- Parameters:
attributeOp
- The new attribute "operator" to be set
setValue
public void setValue(byte[] b)
- Parameters:
b
- The new attribute value to be set
setValue
public void setValue(byte[] b,
int off,
int len)
setValue
public void setValue(String value)
- Parameters:
value
- The new attribute value to be set
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
setOverflow
public void setOverflow(boolean b)
isOverflow
public boolean isOverflow()
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.