public class MPLSProtocolMaskTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
static short |
LENGTH |
static byte |
LFLAG_SET |
protected static org.slf4j.Logger |
log |
static byte |
RFLAG_SET |
static short |
TYPE |
| Constructor and Description |
|---|
MPLSProtocolMaskTlv(boolean bLFlag,
boolean bRFlag)
constructor to initialize different Flags.
|
MPLSProtocolMaskTlv(byte rawValue)
constructor to initialize rawValue.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getbLFlag()
Returns L-flag.
|
boolean |
getbRFlag()
Returns R-flag.
|
byte |
getByte()
Returns raw value.
|
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static MPLSProtocolMaskTlv |
of(byte raw)
Returns newly created MPLSProtocolMaskTlv object.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c)
Reads the channel buffer and returns object of MPLS Protocol Mask Tlv.
|
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 LFLAG_SET
public static final byte RFLAG_SET
public MPLSProtocolMaskTlv(byte rawValue)
rawValue - MPLS Protocol Mask Flag Bitspublic MPLSProtocolMaskTlv(boolean bLFlag,
boolean bRFlag)
bLFlag - L-flagbRFlag - R-flagpublic static MPLSProtocolMaskTlv of(byte raw)
raw - MPLS Protocol Mask Tlvpublic boolean getbLFlag()
public boolean getbRFlag()
public byte getByte()
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 PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c)
c - input channel bufferCopyright © 2015. All rights reserved.