Class AbstractAssociationGroupParser

java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.parser.object.AbstractAssociationGroupParser
All Implemented Interfaces:
ObjectParser, ObjectSerializer
Direct Known Subclasses:
PCEPAssociationIPv4ObjectParser, PCEPAssociationIPv6ObjectParser

public abstract class AbstractAssociationGroupParser extends CommonObjectParser implements ObjectSerializer
  • Constructor Details

    • AbstractAssociationGroupParser

      public AbstractAssociationGroupParser(int objectType)
  • Method Details

    • parseObject

      public Object parseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
      Specified by:
      parseObject in interface ObjectParser
      Throws:
      PCEPDeserializerException
    • parseAssociationSource

      protected abstract org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone parseAssociationSource(io.netty.buffer.ByteBuf buffer)
    • serializeObject

      public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
      Description copied from interface: ObjectSerializer
      Serializes given object to bytes wrapped in given ByteBuf.
      Specified by:
      serializeObject in interface ObjectSerializer
      Parameters:
      object - PCEP object to be serialized
      buffer - ByteBuf wrapper around serialized object
    • serializeAssociationSource

      protected abstract boolean serializeAssociationSource(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone source, io.netty.buffer.ByteBuf buffer)