Class StatefulStatefulCapabilityTlvParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.ietf.stateful.StatefulStatefulCapabilityTlvParser
-
- All Implemented Interfaces:
TlvParser
,TlvSerializer
- Direct Known Subclasses:
InitiatedStatefulCapabilityTlvParser
public class StatefulStatefulCapabilityTlvParser extends Object implements TlvParser, TlvSerializer
Parser forStateful
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
FLAGS_F_LENGTH
static int
TYPE
protected static int
U_FLAG_OFFSET
-
Constructor Summary
Constructors Constructor Description StatefulStatefulCapabilityTlvParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
parseFlags(StatefulBuilder sb, io.netty.buffer.ByteBuf buffer)
Stateful
parseTlv(io.netty.buffer.ByteBuf buffer)
protected BitArray
serializeFlags(Stateful sct)
void
serializeTlv(Tlv tlv, io.netty.buffer.ByteBuf buffer)
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
FLAGS_F_LENGTH
protected static final int FLAGS_F_LENGTH
- See Also:
- Constant Field Values
-
U_FLAG_OFFSET
protected static final int U_FLAG_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseTlv
public Stateful parseTlv(io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
- Specified by:
parseTlv
in interfaceTlvParser
- Throws:
PCEPDeserializerException
-
parseFlags
protected void parseFlags(StatefulBuilder sb, io.netty.buffer.ByteBuf buffer)
-
serializeTlv
public void serializeTlv(Tlv tlv, io.netty.buffer.ByteBuf buffer)
- Specified by:
serializeTlv
in interfaceTlvSerializer
-
-