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