public class PCEPNotificationObjectParser extends AbstractObjectWithTlvsParser<CNotificationBuilder>
CNotification| Constructor and Description |
|---|
PCEPNotificationObjectParser(TlvRegistry tlvReg,
VendorInformationTlvRegistry viTlvReg) |
| Modifier and Type | Method and 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) |
parseTlvs, serializeTlv, serializeVendorInformationTlvspublic static final int CLASS
public static final int TYPE
public PCEPNotificationObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
public CNotification parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
PCEPDeserializerExceptionpublic void addTlv(CNotificationBuilder builder, Tlv tlv)
addTlv in class AbstractObjectWithTlvsParser<CNotificationBuilder>public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
ObjectSerializerobject - PCEP object to be serializedbuffer - ByteBuf wrapper around serialized objectpublic void serializeTlvs(Tlvs tlvs, io.netty.buffer.ByteBuf body)
protected final void addVendorInformationTlvs(CNotificationBuilder builder, List<VendorInformationTlv> tlvs)
addVendorInformationTlvs in class AbstractObjectWithTlvsParser<CNotificationBuilder>Copyright © 2019 OpenDaylight. All rights reserved.