public final class BgpPrefixAttrOpaqueData extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR_PREFIX_OPAQUEDATA |
| Constructor and Description |
|---|
BgpPrefixAttrOpaqueData(byte[] opaquePrefixAttribute)
Constructor to initialize the values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
byte[] |
getOpaquePrefixAttribute()
Returns the Opaque prefix attribute name.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpPrefixAttrOpaqueData |
of(byte[] opaquePrefixAttribute)
Returns object of this class with specified values.
|
static BgpPrefixAttrOpaqueData |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Opaque Prefix Attribute.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final int ATTR_PREFIX_OPAQUEDATA
public BgpPrefixAttrOpaqueData(byte[] opaquePrefixAttribute)
opaquePrefixAttribute - opaque prefix datapublic static BgpPrefixAttrOpaqueData of(byte[] opaquePrefixAttribute)
opaquePrefixAttribute - opaque prefix datapublic static BgpPrefixAttrOpaqueData read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpPrefixAttrOpaqueDatapublic byte[] getOpaquePrefixAttribute()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object