public class MultiProtocolExtnCapabilityTlv extends java.lang.Object implements BgpValueType
| Constructor and Description |
|---|
MultiProtocolExtnCapabilityTlv(short afi,
byte res,
byte safi)
Constructor to initialize variables.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getAfi()
Returns afi Address Family Identifiers value.
|
byte |
getRes()
Returns res reserved field value.
|
byte |
getSafi()
Returns safi Subsequent Address Family Identifier value.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static MultiProtocolExtnCapabilityTlv |
of(short afi,
byte res,
byte safi)
Returns object of MultiProtocolExtnCapabilityTlv.
|
static BgpValueType |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of MultiprotocolCapabilityTlv.
|
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 byte TYPE
public static final byte LENGTH
public MultiProtocolExtnCapabilityTlv(short afi,
byte res,
byte safi)
afi - Address Family Identifiersres - reserved fieldsafi - Subsequent Address Family Identifierpublic static MultiProtocolExtnCapabilityTlv of(short afi, byte res, byte safi)
afi - Address Family Identifiersres - reserved fieldsafi - Subsequent Address Family Identifierpublic short getAfi()
public byte getRes()
public byte getSafi()
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 static BgpValueType read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - of type channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object