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:
Stateful07ErrorMessageParser
public class PCEPErrorMessageParser extends AbstractMessageParser
Parser forPcerrMessage
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
-
Constructor Summary
Constructors Constructor Description PCEPErrorMessageParser(ObjectRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
validate(List<Object> objects, List<Message> errors)
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
addVendorInformationObjects, createErrorMsg, parseMessage, serializeObject, serializeVendorInformationObjects
-
-
-
-
Field Detail
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PCEPErrorMessageParser
public PCEPErrorMessageParser(ObjectRegistry registry)
-
-
Method Detail
-
serializeMessage
public void serializeMessage(Message message, io.netty.buffer.ByteBuf out)
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
protected void serializeCases(PcerrMessage err, io.netty.buffer.ByteBuf buffer)
If needed, subclasses can override this method.
-
validate
protected PcerrMessage validate(List<Object> objects, List<Message> errors) throws PCEPDeserializerException
- Specified by:
validate
in classAbstractMessageParser
- Throws:
PCEPDeserializerException
-
-