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