Class AbstractVendorInformationObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.CommonObjectParser
-
- org.opendaylight.protocol.pcep.parser.object.AbstractVendorInformationObjectParser
-
- All Implemented Interfaces:
EnterpriseSpecificInformationParser,ObjectParser,ObjectSerializer
public abstract class AbstractVendorInformationObjectParser extends CommonObjectParser implements ObjectSerializer, EnterpriseSpecificInformationParser
-
-
Constructor Summary
Constructors Constructor Description AbstractVendorInformationObjectParser(int objectClass, int objectType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectparseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer)voidserializeObject(Object object, io.netty.buffer.ByteBuf buffer)Serializes given object to bytes wrapped in given ByteBuf.-
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.pcep.spi.EnterpriseSpecificInformationParser
getEnterpriseNumber, parseEnterpriseSpecificInformation, serializeEnterpriseSpecificInformation
-
-
-
-
Method Detail
-
parseObject
public final Object parseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
- Specified by:
parseObjectin interfaceObjectParser- Throws:
PCEPDeserializerException
-
serializeObject
public final void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from interface:ObjectSerializerSerializes given object to bytes wrapped in given ByteBuf.- Specified by:
serializeObjectin interfaceObjectSerializer- Parameters:
object- PCEP object to be serializedbuffer- ByteBuf wrapper around serialized object
-
-