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
Parser for
PcerrMessage
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
serializeCases
(PcerrMessage err, io.netty.buffer.ByteBuf buffer) If needed, subclasses can override this method.void
serializeMessage
(Message message, io.netty.buffer.ByteBuf out) Serializes given message to bytes wrapped in given ByteBuf.protected PcerrMessage
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
addVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
-
Field Details
-
TYPE
public static final int TYPE- See Also:
-
-
Constructor Details
-
PCEPErrorMessageParser
-
-
Method Details
-
serializeMessage
Description copied from interface:MessageSerializer
Serializes given message to bytes wrapped in given ByteBuf.- Parameters:
message
- PCEP message to be serializedout
- ByteBuf wrapper around serialized message
-
serializeCases
If needed, subclasses can override this method. -
validate
protected PcerrMessage validate(Queue<Object> objects, List<Message> errors) throws PCEPDeserializerException - Specified by:
validate
in classAbstractMessageParser
- Throws:
PCEPDeserializerException
-