Class PCEPNotificationObjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<CNotificationBuilder>
org.opendaylight.protocol.pcep.parser.object.PCEPNotificationObjectParser
- All Implemented Interfaces:
ObjectParser,ObjectSerializer
public final class PCEPNotificationObjectParser
extends AbstractObjectWithTlvsParser<CNotificationBuilder>
Parser for
CNotification.-
Constructor Summary
ConstructorsConstructorDescriptionPCEPNotificationObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTlv(CNotificationBuilder builder, Tlv tlv) protected voidaddVendorInformationTlvs(CNotificationBuilder builder, List<VendorInformationTlv> tlvs) parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer) Serializes given object to bytes wrapped in given ByteBuf.voidserializeTlvs(@Nullable Tlvs tlvs, io.netty.buffer.ByteBuf body) Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser
parseTlvs, serializeOptionalTlv, serializeTlv, serializeVendorInformationTlvsMethods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
Constructor Details
-
PCEPNotificationObjectParser
-
-
Method Details
-
parseObject
public CNotification parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
PCEPDeserializerException
-
addTlv
- Overrides:
addTlvin classAbstractObjectWithTlvsParser<CNotificationBuilder>
-
serializeObject
Description copied from interface:ObjectSerializerSerializes given object to bytes wrapped in given ByteBuf.- Parameters:
object- PCEP object to be serializedbuffer- ByteBuf wrapper around serialized object
-
serializeTlvs
-
addVendorInformationTlvs
protected void addVendorInformationTlvs(CNotificationBuilder builder, List<VendorInformationTlv> tlvs) - Specified by:
addVendorInformationTlvsin classAbstractObjectWithTlvsParser<CNotificationBuilder>
-