public final 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, serializeVendorInformationTlvs
getObjectClass, getObjectType
public PCEPNotificationObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
public CNotification parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
PCEPDeserializerException
public void addTlv(CNotificationBuilder builder, Tlv tlv)
addTlv
in class AbstractObjectWithTlvsParser<CNotificationBuilder>
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
ObjectSerializer
object
- 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 © 2020 OpenDaylight. All rights reserved.