public class IntegerAttribute extends RadiusAttribute
| 构造器和说明 |
|---|
IntegerAttribute()
Constructs an empty integer attribute.
|
IntegerAttribute(int type,
int value)
Constructs an integer attribute with the given value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAttributeValue()
Returns the value of this attribute as a string.
|
int |
getAttributeValueInt()
Returns the string value of this attribute.
|
void |
readAttribute(byte[] data,
int offset,
int length)
Check attribute length.
|
void |
setAttributeValue(int value)
Sets the value of this attribute.
|
void |
setAttributeValue(String value)
Sets the value of this attribute.
|
createRadiusAttribute, createRadiusAttribute, createRadiusAttribute, getAttributeData, getAttributeType, getAttributeTypeObject, getDictionary, getVendorId, setAttributeData, setAttributeType, setDictionary, setVendorId, toString, writeAttributepublic IntegerAttribute()
public IntegerAttribute(int type,
int value)
type - attribute typevalue - attribute valuepublic int getAttributeValueInt()
public String getAttributeValue()
getAttributeValue 在类中 RadiusAttributeRadiusAttribute.getAttributeValue()public void setAttributeValue(int value)
value - integer valuepublic void setAttributeValue(String value)
setAttributeValue 在类中 RadiusAttributevalue - value as a stringNumberFormatException - if value is not a number and constant cannot be resolvedRadiusAttribute.setAttributeValue(java.lang.String)public void readAttribute(byte[] data,
int offset,
int length)
throws RadiusException
Copyright © 2016. All rights reserved.