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
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intprotected static final intstatic final intstatic final int - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcheckContentLength(int length) final SubobjectparseSubobject(io.netty.buffer.ByteBuf buffer, boolean loose) protected abstract byte[]readPceId(io.netty.buffer.ByteBuf buffer) final voidserializeSubobject(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:
 parseSubobjectin interfaceEROSubobjectParser- Throws:
 PCEPDeserializerException
 - 
serializeSubobject
- Specified by:
 serializeSubobjectin interfaceEROSubobjectSerializer
 
 -