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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected EricHeader
buildHeader
(boolean hasMask) deserializeHeader
(io.netty.buffer.ByteBuf message) Deserializes a byte message headers.protected MatchEntryBuilder
deserializeHeaderToBuilder
(io.netty.buffer.ByteBuf message) abstract MatchField
Returns the eric_field class.abstract int
Returns the numeric representation of eric_field.protected EricHeader
getHeader
(boolean hasMask) abstract OxmClassBase
Returns the oxm_class class.abstract int
Returns the numeric representation of oxm_class.abstract int
Returns the match entry value length.void
serializeHeader
(EricHeader input, io.netty.buffer.ByteBuf outBuffer) void
serializeHeader
(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 Details
-
headerWithMask
-
headerWithoutMask
-
-
Constructor Details
-
AbstractMatchCodec
public AbstractMatchCodec()
-
-
Method Details
-
deserializeHeaderToBuilder
-
deserializeHeader
Description copied from interface:HeaderDeserializer
Deserializes a byte message headers.- Specified by:
deserializeHeader
in interfaceHeaderDeserializer<MatchEntry>
- Parameters:
message
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
serializeHeader
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<MatchEntry>
- Parameters:
input
- object whose headers should be serializedoutBuffer
- output buffer
-
serializeHeader
-
getHeader
-
buildHeader
-
getHeaderWithoutHasMask
-
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
Returns the eric_field class. -
getOxmClass
Returns the oxm_class class.
-