public class IPv6SubObject extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static IPv6SubObject |
FULL_MASK |
static short |
LENGTH |
protected static org.slf4j.Logger |
log |
static IPv6SubObject |
NO_MASK |
static IPv6SubObject |
NONE |
static short |
TYPE |
static byte |
VALUE_LENGTH |
| Constructor and Description |
|---|
IPv6SubObject(byte[] rawValue)
constructor to initialize rawValue with ipv6 address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
byte[] |
getValue()
Returns value of IPv6 Sub Object.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static IPv6SubObject |
of(byte[] raw)
To create instance of IPv6SubObject.
|
static IPv6SubObject |
read20Bytes(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of IPv6SubObject.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of PCEP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final short TYPE
public static final short LENGTH
public static final byte VALUE_LENGTH
public static final IPv6SubObject NONE
public static final IPv6SubObject NO_MASK
public static final IPv6SubObject FULL_MASK
public IPv6SubObject(byte[] rawValue)
rawValue - ipv6 addresspublic static IPv6SubObject of(byte[] raw)
raw - byte array of ipv6 addresspublic byte[] getValue()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferpublic static IPv6SubObject read20Bytes(org.jboss.netty.buffer.ChannelBuffer c)
c - type of channel buffer