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 forCNotification
.
-
-
Constructor Summary
Constructors Constructor Description PCEPNotificationObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTlv(CNotificationBuilder builder, Tlv tlv)
protected void
addVendorInformationTlvs(CNotificationBuilder builder, List<VendorInformationTlv> tlvs)
CNotification
parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes)
void
serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Serializes given object to bytes wrapped in given ByteBuf.void
serializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body)
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser
parseTlvs, serializeTlv, serializeVendorInformationTlvs
-
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
-
-
-
Constructor Detail
-
PCEPNotificationObjectParser
public PCEPNotificationObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
-
-
Method Detail
-
parseObject
public CNotification parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
- Throws:
PCEPDeserializerException
-
addTlv
public void addTlv(CNotificationBuilder builder, Tlv tlv)
- Overrides:
addTlv
in classAbstractObjectWithTlvsParser<CNotificationBuilder>
-
serializeObject
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
serializeTlvs
public void serializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body)
-
addVendorInformationTlvs
protected void addVendorInformationTlvs(CNotificationBuilder builder, List<VendorInformationTlv> tlvs)
- Specified by:
addVendorInformationTlvs
in classAbstractObjectWithTlvsParser<CNotificationBuilder>
-
-