Class PCEPOverloadObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.CommonObjectParser
-
- org.opendaylight.protocol.pcep.parser.object.PCEPOverloadObjectParser
-
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
public class PCEPOverloadObjectParser extends CommonObjectParser implements ObjectSerializer
-
-
Constructor Summary
Constructors Constructor Description PCEPOverloadObjectParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer)
void
serializeObject(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
-
-
-
-
Method Detail
-
serializeObject
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Specified by:
serializeObject
in interfaceObjectSerializer
- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
parseObject
public Object parseObject(ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException
- Specified by:
parseObject
in interfaceObjectParser
- Throws:
PCEPDeserializerException
-
-