public class PCEPErrorObjectParser extends AbstractObjectWithTlvsParser<ErrorObjectBuilder>
ErrorObject
Constructor and Description |
---|
PCEPErrorObjectParser(TlvRegistry tlvReg,
VendorInformationTlvRegistry viTlvReg) |
Modifier and Type | Method and Description |
---|---|
void |
addTlv(ErrorObjectBuilder builder,
Tlv tlv) |
protected void |
addVendorInformationTlvs(ErrorObjectBuilder builder,
List<VendorInformationTlv> tlvs) |
ErrorObject |
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
public static final int CLASS
public static final int TYPE
public PCEPErrorObjectParser(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg)
public ErrorObject parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
PCEPDeserializerException
public void addTlv(ErrorObjectBuilder builder, Tlv tlv)
addTlv
in class AbstractObjectWithTlvsParser<ErrorObjectBuilder>
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(ErrorObjectBuilder builder, List<VendorInformationTlv> tlvs)
addVendorInformationTlvs
in class AbstractObjectWithTlvsParser<ErrorObjectBuilder>
Copyright © 2018 OpenDaylight. All rights reserved.