Class PCEPErrorObjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.spi.AbstractObjectWithTlvsParser<ErrorObjectBuilder>
org.opendaylight.protocol.pcep.parser.object.PCEPErrorObjectParser
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
Parser for
ErrorObject
.-
Constructor Summary
ConstructorDescriptionPCEPErrorObjectParser
(TlvRegistry tlvReg, VendorInformationTlvRegistry viTlvReg) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTlv
(ErrorObjectBuilder builder, Tlv tlv) protected void
addVendorInformationTlvs
(ErrorObjectBuilder builder, List<VendorInformationTlv> tlvs) 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 Details
-
PCEPErrorObjectParser
-
-
Method Details
-
parseObject
public ErrorObject parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Throws:
PCEPDeserializerException
-
addTlv
- Overrides:
addTlv
in classAbstractObjectWithTlvsParser<ErrorObjectBuilder>
-
serializeObject
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
-
addVendorInformationTlvs
protected void addVendorInformationTlvs(ErrorObjectBuilder builder, List<VendorInformationTlv> tlvs) - Specified by:
addVendorInformationTlvs
in classAbstractObjectWithTlvsParser<ErrorObjectBuilder>
-