Class AbstractEROPathKeySubobjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.AbstractEROPathKeySubobjectParser
- All Implemented Interfaces:
EROSubobjectParser
,EROSubobjectSerializer
- Direct Known Subclasses:
EROPathKey128SubobjectParser
,EROPathKey32SubobjectParser
public abstract class AbstractEROPathKeySubobjectParser
extends Object
implements EROSubobjectParser, EROSubobjectSerializer
Parser for
PathKey
.-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
checkContentLength
(int length) final Subobject
parseSubobject
(io.netty.buffer.ByteBuf buffer, boolean loose) protected abstract byte[]
readPceId
(io.netty.buffer.ByteBuf buffer) final void
serializeSubobject
(Subobject subobject, io.netty.buffer.ByteBuf buffer)
-
Field Details
-
TYPE_32
public static final int TYPE_32- See Also:
-
TYPE_128
public static final int TYPE_128- See Also:
-
PCE_ID_F_LENGTH
protected static final int PCE_ID_F_LENGTH- See Also:
-
PCE128_ID_F_LENGTH
protected static final int PCE128_ID_F_LENGTH- See Also:
-
CONTENT128_LENGTH
protected static final int CONTENT128_LENGTH- See Also:
-
CONTENT_LENGTH
protected static final int CONTENT_LENGTH- See Also:
-
-
Constructor Details
-
AbstractEROPathKeySubobjectParser
public AbstractEROPathKeySubobjectParser()
-
-
Method Details
-
readPceId
protected abstract byte[] readPceId(io.netty.buffer.ByteBuf buffer) -
checkContentLength
- Throws:
PCEPDeserializerException
-
parseSubobject
public final Subobject parseSubobject(io.netty.buffer.ByteBuf buffer, boolean loose) throws PCEPDeserializerException - Specified by:
parseSubobject
in interfaceEROSubobjectParser
- Throws:
PCEPDeserializerException
-
serializeSubobject
- Specified by:
serializeSubobject
in interfaceEROSubobjectSerializer
-