Class PcRptMessageCodec
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.AbstractMessageParser
-
- org.opendaylight.protocol.pcep.ietf.stateful.StatefulPCReportMessageParser
-
- org.opendaylight.protocol.pcep.auto.bandwidth.extension.PcRptMessageCodec
-
- All Implemented Interfaces:
MessageParser
,MessageSerializer
public class PcRptMessageCodec extends StatefulPCReportMessageParser
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.pcep.ietf.stateful.StatefulPCReportMessageParser
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(Queue<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.stateful.StatefulPCReportMessageParser
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(Queue<Object> objects, List<Message> errors)
- Overrides:
getValidReports
in classStatefulPCReportMessageParser
-
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
-
-