Class AbstractObjectWithTlvsParser<T>
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<T>
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
- Direct Known Subclasses:
PCEPCloseObjectParser
,PCEPErrorObjectParser
,PCEPGlobalConstraintsObjectParser
,PCEPLspaObjectParser
,PCEPMonitoringObjectParser
,PCEPNoPathObjectParser
,PCEPNotificationObjectParser
,PCEPObjectiveFunctionObjectParser
,PCEPOpenObjectParser
,PCEPRequestParameterObjectParser
,StatefulLspObjectParser
,StatefulSrpObjectParser
public abstract class AbstractObjectWithTlvsParser<T>
extends CommonObjectParser
implements ObjectSerializer
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractObjectWithTlvsParser
(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg, int objectClass, int objectType) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected abstract void
addVendorInformationTlvs
(T builder, List<VendorInformationTlv> tlvs) protected final void
protected final void
serializeTlv
(Tlv tlv, io.netty.buffer.ByteBuf buffer) protected final void
serializeVendorInformationTlvs
(List<VendorInformationTlv> tlvs, io.netty.buffer.ByteBuf buffer) Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.protocol.pcep.spi.ObjectParser
parseObject
Methods inherited from interface org.opendaylight.protocol.pcep.spi.ObjectSerializer
serializeObject
-
Constructor Details
-
AbstractObjectWithTlvsParser
protected AbstractObjectWithTlvsParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg, int objectClass, int objectType)
-
-
Method Details
-
parseTlvs
protected final void parseTlvs(T builder, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
PCEPDeserializerException
-
serializeTlv
-
addTlv
-
addVendorInformationTlvs
-
serializeVendorInformationTlvs
protected final void serializeVendorInformationTlvs(List<VendorInformationTlv> tlvs, io.netty.buffer.ByteBuf buffer)
-