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 forPathKey
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
CONTENT_LENGTH
protected static int
CONTENT128_LENGTH
protected static int
PCE_ID_F_LENGTH
protected static int
PCE128_ID_F_LENGTH
static int
TYPE_128
static int
TYPE_32
-
Constructor Summary
Constructors Constructor Description AbstractEROPathKeySubobjectParser()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
checkContentLength(int length)
Subobject
parseSubobject(io.netty.buffer.ByteBuf buffer, boolean loose)
protected abstract byte[]
readPceId(io.netty.buffer.ByteBuf buffer)
void
serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
-
-
-
Field Detail
-
TYPE_32
public static final int TYPE_32
- See Also:
- Constant Field Values
-
TYPE_128
public static final int TYPE_128
- See Also:
- Constant Field Values
-
PCE_ID_F_LENGTH
protected static final int PCE_ID_F_LENGTH
- See Also:
- Constant Field Values
-
PCE128_ID_F_LENGTH
protected static final int PCE128_ID_F_LENGTH
- See Also:
- Constant Field Values
-
CONTENT128_LENGTH
protected static final int CONTENT128_LENGTH
- See Also:
- Constant Field Values
-
CONTENT_LENGTH
protected static final int CONTENT_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
readPceId
protected abstract byte[] readPceId(io.netty.buffer.ByteBuf buffer)
-
checkContentLength
protected abstract void checkContentLength(int length) throws PCEPDeserializerException
- Throws:
PCEPDeserializerException
-
parseSubobject
public final Subobject parseSubobject(io.netty.buffer.ByteBuf buffer, boolean loose) throws PCEPDeserializerException
- Specified by:
parseSubobject
in interfaceEROSubobjectParser
- Throws:
PCEPDeserializerException
-
serializeSubobject
public final void serializeSubobject(Subobject subobject, io.netty.buffer.ByteBuf buffer)
- Specified by:
serializeSubobject
in interfaceEROSubobjectSerializer
-
-