Class PCEPErrorMessageParser
- java.lang.Object
- 
- org.opendaylight.protocol.pcep.spi.AbstractMessageParser
- 
- org.opendaylight.protocol.pcep.parser.message.PCEPErrorMessageParser
 
 
- 
- All Implemented Interfaces:
- MessageParser,- MessageSerializer
 - Direct Known Subclasses:
- StatefulErrorMessageParser
 
 public class PCEPErrorMessageParser extends AbstractMessageParser Parser forPcerrMessage.
- 
- 
Field SummaryFields Modifier and Type Field Description static intTYPE
 - 
Constructor SummaryConstructors Constructor Description PCEPErrorMessageParser(ObjectRegistry registry)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidserializeCases(PcerrMessage err, io.netty.buffer.ByteBuf buffer)If needed, subclasses can override this method.voidserializeMessage(Message message, io.netty.buffer.ByteBuf out)Serializes given message to bytes wrapped in given ByteBuf.protected PcerrMessagevalidate(List<Object> objects, List<Message> errors)- 
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParseraddVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
 
- 
 
- 
- 
- 
Field Detail- 
TYPEpublic static final int TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PCEPErrorMessageParserpublic PCEPErrorMessageParser(ObjectRegistry registry) 
 
- 
 - 
Method Detail- 
serializeMessagepublic void serializeMessage(Message message, io.netty.buffer.ByteBuf out) Description copied from interface:MessageSerializerSerializes given message to bytes wrapped in given ByteBuf.- Parameters:
- message- PCEP message to be serialized
- out- ByteBuf wrapper around serialized message
 
 - 
serializeCasesprotected void serializeCases(PcerrMessage err, io.netty.buffer.ByteBuf buffer) If needed, subclasses can override this method.
 - 
validateprotected PcerrMessage validate(List<Object> objects, List<Message> errors) throws PCEPDeserializerException - Specified by:
- validatein class- AbstractMessageParser
- Throws:
- PCEPDeserializerException
 
 
- 
 
-