public class LsCapabilityTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
LENGTH |
protected static org.slf4j.Logger |
log |
static byte |
RFLAG_CHECK |
static int |
SET |
static short |
TYPE |
| Constructor and Description |
|---|
LsCapabilityTlv(boolean rFlag)
Constructor to initialize rFlag.
|
LsCapabilityTlv(int rawValue)
Constructor to initialize raw Value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getInt() |
short |
getLength()
Returns the Length of PCEP Message.
|
boolean |
getrFlag()
Returns R-flag.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static LsCapabilityTlv |
of(int raw)
Returns an object of LsCapabilityTlv.
|
static LsCapabilityTlv |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads channel buffer and returns object of LsCapabilityTlv.
|
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 int SET
public static final byte RFLAG_CHECK
public LsCapabilityTlv(int rawValue)
rawValue - Flagspublic LsCapabilityTlv(boolean rFlag)
rFlag - R-flagpublic boolean getrFlag()
public static LsCapabilityTlv of(int raw)
raw - value Flagspublic PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic int getInt()
public 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 LsCapabilityTlv read(org.jboss.netty.buffer.ChannelBuffer c)
c - input channel buffer