Class PcRptMessageCodec
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.AbstractMessageParser
-
- org.opendaylight.protocol.pcep.ietf.stateful07.Stateful07PCReportMessageParser
-
- org.opendaylight.protocol.pcep.auto.bandwidth.extension.PcRptMessageCodec
-
- All Implemented Interfaces:
MessageParser
,MessageSerializer
public class PcRptMessageCodec extends Stateful07PCReportMessageParser
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.pcep.ietf.stateful07.Stateful07PCReportMessageParser
TYPE
-
-
Constructor Summary
Constructors Constructor Description PcRptMessageCodec(ObjectRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Reports
getValidReports(List<Object> objects, List<Message> errors)
protected void
serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Calls registry to pick up specific object serializer for given object.-
Methods inherited from class org.opendaylight.protocol.pcep.ietf.stateful07.Stateful07PCReportMessageParser
serializeMessage, validate
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractMessageParser
addVendorInformationObjects, createErrorMsg, parseMessage, serializeVendorInformationObjects
-
-
-
-
Constructor Detail
-
PcRptMessageCodec
public PcRptMessageCodec(ObjectRegistry registry)
-
-
Method Detail
-
getValidReports
protected Reports getValidReports(List<Object> objects, List<Message> errors)
- Overrides:
getValidReports
in classStateful07PCReportMessageParser
-
serializeObject
protected void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from class:AbstractMessageParser
Calls registry to pick up specific object serializer for given object. Checks if the object is not null.- Overrides:
serializeObject
in classAbstractMessageParser
- Parameters:
object
- Object to be serialized, may be nullbuffer
- ByteBuf where the object should be serialized
-
-