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 Details

  • Method Details

    • 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)
    • addTlv

      protected void addTlv(T builder, Tlv tlv)
    • addVendorInformationTlvs

      protected abstract void addVendorInformationTlvs(T builder, List<VendorInformationTlv> tlvs)
    • serializeVendorInformationTlvs

      protected final void serializeVendorInformationTlvs(List<VendorInformationTlv> tlvs, io.netty.buffer.ByteBuf buffer)