net.jradius.packet.attribute
Class VSAttribute

java.lang.Object
  extended by net.jradius.packet.attribute.RadiusAttribute
      extended by net.jradius.packet.attribute.VSAttribute
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Attr_UnknownVSAttribute, SubAttribute, VSAWithSubAttributes

public abstract class VSAttribute
extends RadiusAttribute

The RADIUS VSA. All radius vendor specific attributes (as build by RadiusDictionary) are derived from this abstract class.

Author:
David Bird
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jradius.packet.attribute.RadiusAttribute
RadiusAttribute.Operator
 
Field Summary
protected  short continuation
           
protected  short extraLength
           
protected  boolean grouped
           
protected  boolean hasContinuationByte
           
protected  short lengthLength
           
protected  short typeLength
           
protected  long vendorId
           
protected  long vsaAttributeType
           
 
Fields inherited from class net.jradius.packet.attribute.RadiusAttribute
attributeName, attributeOp, attributeType, attributeValue, overflow, recyclable, recycled
 
Constructor Summary
VSAttribute()
           
 
Method Summary
 int getContinuation()
           
 short getExtraLength()
           
 long getFormattedType()
          Returns the VSA type (lower 2 bytes) encoded with the Vendor ID (upper 2 bytes) as an integer.
 short getLengthLength()
           
 short getTypeLength()
           
 long getVendorId()
           
 long getVsaAttributeType()
           
 boolean hasContinuationByte()
           
 boolean isGrouped()
           
 void setContinuation()
           
 void setContinuation(short cont)
           
 void setFormat(String format)
           
 void setGrouped(boolean grouped)
           
 void setVendorId(long vendorId)
           
 void setVsaAttributeType(long vsaAttributeType)
           
 void unsetContinuation()
           
 
Methods inherited from class net.jradius.packet.attribute.RadiusAttribute
getAttributeName, getAttributeOp, getType, getValue, isOverflow, setAttributeOp, setAttributeOp, setOverflow, setup, setup, setup, setValue, setValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vendorId

protected long vendorId

vsaAttributeType

protected long vsaAttributeType

typeLength

protected short typeLength

lengthLength

protected short lengthLength

extraLength

protected short extraLength

hasContinuationByte

protected boolean hasContinuationByte

continuation

protected short continuation

grouped

protected boolean grouped
Constructor Detail

VSAttribute

public VSAttribute()
Method Detail

setFormat

public void setFormat(String format)

getFormattedType

public long getFormattedType()
Returns the VSA type (lower 2 bytes) encoded with the Vendor ID (upper 2 bytes) as an integer.

Overrides:
getFormattedType in class RadiusAttribute
Returns:
Returns the (internal) formatted attribute type
See Also:
RadiusAttribute.getFormattedType()

getVendorId

public long getVendorId()
Returns:
Returns the vendorId.

setVendorId

public void setVendorId(long vendorId)
Parameters:
vendorId - The vendorId to set.

getVsaAttributeType

public long getVsaAttributeType()
Returns:
Returns the vsaAttributeType.

setVsaAttributeType

public void setVsaAttributeType(long vsaAttributeType)
Parameters:
vsaAttributeType - The vsaAttributeType to set.

getTypeLength

public short getTypeLength()

getLengthLength

public short getLengthLength()

getExtraLength

public short getExtraLength()

hasContinuationByte

public boolean hasContinuationByte()

getContinuation

public int getContinuation()

setContinuation

public void setContinuation(short cont)

setContinuation

public void setContinuation()

unsetContinuation

public void unsetContinuation()

isGrouped

public boolean isGrouped()

setGrouped

public void setGrouped(boolean grouped)


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.