Class AbstractMatchCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.eric.codec.match.AbstractMatchCodec
-
- All Implemented Interfaces:
HeaderDeserializer<MatchEntry>,HeaderSerializer<MatchEntry>,OFDeserializer<MatchEntry>,OFGeneralDeserializer,OFGeneralSerializer,OFSerializer<MatchEntry>
- Direct Known Subclasses:
Icmpv6NDOptionsTypeCodec,Icmpv6NDReservedCodec
public abstract class AbstractMatchCodec extends Object implements OFSerializer<MatchEntry>, OFDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, HeaderDeserializer<MatchEntry>
-
-
Field Summary
Fields Modifier and Type Field Description protected EricHeaderheaderWithMaskprotected EricHeaderheaderWithoutMask
-
Constructor Summary
Constructors Constructor Description AbstractMatchCodec()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected EricHeaderbuildHeader(boolean hasMask)MatchEntrydeserializeHeader(io.netty.buffer.ByteBuf message)Deserializes a byte message headers.protected MatchEntryBuilderdeserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)abstract Class<? extends MatchField>getEricField()Returns the eric_field class.abstract intgetEricFieldCode()Returns the numeric representation of eric_field.protected EricHeadergetHeader(boolean hasMask)EricHeadergetHeaderWithHasMask()EricHeadergetHeaderWithoutHasMask()abstract Class<? extends OxmClassBase>getOxmClass()Returns the oxm_class class.abstract intgetOxmClassCode()Returns the numeric representation of oxm_class.abstract intgetValueLength()Returns the match entry value length.voidserializeHeader(EricHeader input, io.netty.buffer.ByteBuf outBuffer)voidserializeHeader(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)Serializes object headers (e.g.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer
deserialize
-
Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.OFSerializer
serialize
-
-
-
-
Field Detail
-
headerWithMask
protected EricHeader headerWithMask
-
headerWithoutMask
protected EricHeader headerWithoutMask
-
-
Method Detail
-
deserializeHeaderToBuilder
protected MatchEntryBuilder deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)
-
deserializeHeader
public MatchEntry deserializeHeader(io.netty.buffer.ByteBuf message)
Description copied from interface:HeaderDeserializerDeserializes a byte message headers.- Specified by:
deserializeHeaderin interfaceHeaderDeserializer<MatchEntry>- Parameters:
message- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
serializeHeader
public void serializeHeader(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:HeaderSerializerSerializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeaderin interfaceHeaderSerializer<MatchEntry>- Parameters:
input- object whose headers should be serializedoutBuffer- output buffer
-
serializeHeader
public void serializeHeader(EricHeader input, io.netty.buffer.ByteBuf outBuffer)
-
getHeader
protected EricHeader getHeader(boolean hasMask)
-
buildHeader
protected EricHeader buildHeader(boolean hasMask)
-
getHeaderWithoutHasMask
public EricHeader getHeaderWithoutHasMask()
-
getHeaderWithHasMask
public EricHeader getHeaderWithHasMask()
-
getEricFieldCode
public abstract int getEricFieldCode()
Returns the numeric representation of eric_field.
-
getOxmClassCode
public abstract int getOxmClassCode()
Returns the numeric representation of oxm_class.
-
getValueLength
public abstract int getValueLength()
Returns the match entry value length.
-
getEricField
public abstract Class<? extends MatchField> getEricField()
Returns the eric_field class.
-
getOxmClass
public abstract Class<? extends OxmClassBase> getOxmClass()
Returns the oxm_class class.
-
-