net.jradius.packet.attribute
Class RadiusAttribute

java.lang.Object
  extended by 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

Nested Class Summary
static class RadiusAttribute.Operator
          The JRadius RadiusAttribute Operator Type.
 
Field Summary
protected  String attributeName
           
protected  int attributeOp
           
protected  long attributeType
           
protected  AttributeValue attributeValue
           
protected  boolean overflow
           
protected  boolean recyclable
           
protected  boolean recycled
           
 
Constructor Summary
RadiusAttribute()
           
 
Method Summary
 String getAttributeName()
           
 int getAttributeOp()
           
 long getFormattedType()
           
 long getType()
           
 AttributeValue getValue()
           
 boolean isOverflow()
           
 void setAttributeOp(int attributeOp)
           
 void setAttributeOp(String attributeOp)
           
 void setOverflow(boolean b)
           
abstract  void setup()
           
protected  void setup(Serializable value)
           
protected  void setup(Serializable o, int op)
           
 void setValue(byte[] b)
           
 void setValue(byte[] b, int off, int len)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

RadiusAttribute

public RadiusAttribute()
Method Detail

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.