Class PCEPOpenMessageParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.AbstractMessageParser
-
- org.opendaylight.protocol.pcep.parser.message.PCEPOpenMessageParser
-
- All Implemented Interfaces:
MessageParser
,MessageSerializer
public class PCEPOpenMessageParser extends AbstractMessageParser
Parser forOpenMessage
.
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE
-
Constructor Summary
Constructors Constructor Description PCEPOpenMessageParser(ObjectRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serializeMessage(Message message, io.netty.buffer.ByteBuf out)
Serializes given message to bytes wrapped in given ByteBuf.protected Open
validate(Queue<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
-
PCEPOpenMessageParser
public PCEPOpenMessageParser(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
-
validate
protected Open validate(Queue<Object> objects, List<Message> errors) throws PCEPDeserializerException
- Specified by:
validate
in classAbstractMessageParser
- Throws:
PCEPDeserializerException
-
-