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
Constructors Modifier Constructor Description protected
AbstractObjectWithTlvsParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg, int objectClass, int objectType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addTlv(T builder, Tlv tlv)
protected abstract void
addVendorInformationTlvs(T builder, List<VendorInformationTlv> tlvs)
protected void
parseTlvs(T builder, io.netty.buffer.ByteBuf bytes)
protected void
serializeTlv(Tlv tlv, io.netty.buffer.ByteBuf buffer)
protected 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 Detail
-
AbstractObjectWithTlvsParser
protected AbstractObjectWithTlvsParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg, int objectClass, int objectType)
-
-
Method Detail
-
parseTlvs
protected final void parseTlvs(T builder, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
- Throws:
PCEPDeserializerException
-
serializeTlv
protected final void serializeTlv(Tlv tlv, io.netty.buffer.ByteBuf buffer)
-
addVendorInformationTlvs
protected abstract void addVendorInformationTlvs(T builder, List<VendorInformationTlv> tlvs)
-
serializeVendorInformationTlvs
protected final void serializeVendorInformationTlvs(List<VendorInformationTlv> tlvs, io.netty.buffer.ByteBuf buffer)
-
-