net.sf.jradius.packet.attribute
Class RadiusAttribute

java.lang.Object
  extended by net.sf.jradius.packet.attribute.RadiusAttribute
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Attr_UnknownAttribute, VSAttribute

public abstract class RadiusAttribute
extends java.lang.Object
implements java.io.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  java.lang.String attributeName
           
protected  int attributeOp
           
protected  int attributeType
           
protected  AttributeValue attributeValue
           
 
Constructor Summary
RadiusAttribute()
           
 
Method Summary
 java.lang.String getAttributeName()
           
 int getAttributeOp()
           
 int getFormattedType()
           
 int getType()
           
 AttributeValue getValue()
           
 void setAttributeOp(int attributeOp)
           
 void setAttributeOp(java.lang.String attributeOp)
           
abstract  void setup()
           
protected  void setup(java.io.Serializable value)
           
protected  void setup(java.io.Serializable o, int op)
           
 void setValue(byte[] b)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributeType

protected int attributeType

attributeOp

protected int attributeOp

attributeValue

protected AttributeValue attributeValue

attributeName

protected java.lang.String attributeName
Constructor Detail

RadiusAttribute

public RadiusAttribute()
Method Detail

setup

public abstract void setup()

setup

protected void setup(java.io.Serializable value)

setup

protected void setup(java.io.Serializable o,
                     int op)

getType

public int getType()
Returns:
Returns the attribute type

getFormattedType

public int getFormattedType()
Returns:
Returns the (internal) formatted attribute type

getValue

public AttributeValue getValue()
Returns:
Returns the AttributeValue

getAttributeName

public java.lang.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(java.lang.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(java.lang.String value)
Parameters:
value - The new attribute value to be set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2006 The JRadius Project, All Rights Reserved.