Class StatefulSrpObjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<TlvsBuilder>
org.opendaylight.protocol.pcep.ietf.stateful.StatefulSrpObjectParser
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
- Direct Known Subclasses:
InitiatedSrpObjectParser
Parser for
Srp
.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
StatefulSrpObjectParser
(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTlv
(TlvsBuilder builder, Tlv tlv) protected final void
addVendorInformationTlvs
(TlvsBuilder builder, List<VendorInformationTlv> tlvs) protected void
parseFlags
(SrpBuilder builder, io.netty.buffer.ByteBuf bytes) parseObject
(ObjectHeader header, io.netty.buffer.ByteBuf bytes) protected void
serializeFlags
(Srp srp, io.netty.buffer.ByteBuf body) void
serializeObject
(Object object, io.netty.buffer.ByteBuf buffer) Serializes given object to bytes wrapped in given ByteBuf.void
serializeTlvs
(Tlvs tlvs, io.netty.buffer.ByteBuf body) Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser
parseTlvs, serializeTlv, serializeVendorInformationTlvs
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
Field Details
-
FLAGS_SIZE
protected static final int FLAGS_SIZE- See Also:
-
SRP_ID_SIZE
protected static final int SRP_ID_SIZE- See Also:
-
MIN_SIZE
protected static final int MIN_SIZE- See Also:
-
-
Constructor Details
-
StatefulSrpObjectParser
-
-
Method Details
-
parseObject
public Srp parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
PCEPDeserializerException
-
parseFlags
-
addTlv
- Overrides:
addTlv
in classAbstractObjectWithTlvsParser<TlvsBuilder>
-
serializeObject
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
serializeFlags
-
serializeTlvs
-
addVendorInformationTlvs
- Specified by:
addVendorInformationTlvs
in classAbstractObjectWithTlvsParser<TlvsBuilder>
-