Class PCEPErrorMessageParser

  • All Implemented Interfaces:
    org.opendaylight.protocol.pcep.spi.MessageParser, org.opendaylight.protocol.pcep.spi.MessageSerializer

    public class PCEPErrorMessageParser
    extends org.opendaylight.protocol.pcep.spi.AbstractMessageParser
    Parser for PcerrMessage.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int TYPE  
    • Constructor Summary

      Constructors 
      Constructor Description
      PCEPErrorMessageParser​(org.opendaylight.protocol.pcep.spi.ObjectRegistry registry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void serializeCases​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcerr.message.PcerrMessage err, io.netty.buffer.ByteBuf buffer)
      If needed, subclasses can override this method.
      void serializeMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message message, io.netty.buffer.ByteBuf out)  
      protected org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.PcerrMessage validate​(Queue<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Object> objects, List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message> errors)  
      • Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser

        addVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
    • Constructor Detail

      • PCEPErrorMessageParser

        public PCEPErrorMessageParser​(org.opendaylight.protocol.pcep.spi.ObjectRegistry registry)
    • Method Detail

      • serializeMessage

        public void serializeMessage​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message message,
                                     io.netty.buffer.ByteBuf out)
      • serializeCases

        protected void serializeCases​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.pcerr.message.PcerrMessage err,
                                      io.netty.buffer.ByteBuf buffer)
        If needed, subclasses can override this method.
      • validate

        protected org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.PcerrMessage validate​(Queue<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Object> objects,
                                                                                                                              List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message> errors)
                                                                                                                       throws org.opendaylight.protocol.pcep.spi.PCEPDeserializerException
        Specified by:
        validate in class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
        Throws:
        org.opendaylight.protocol.pcep.spi.PCEPDeserializerException