Class AbstractMatchCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.nx.codec.match.AbstractMatchCodec
-
- All Implemented Interfaces:
HeaderDeserializer<MatchEntry>
,HeaderSerializer<MatchEntry>
,OFDeserializer<MatchEntry>
,OFGeneralDeserializer
,OFGeneralSerializer
,OFSerializer<MatchEntry>
- Direct Known Subclasses:
AbstractExperimenterMatchCodec
,AbstractRegCodec
,ArpOpCodec
,ArpShaCodec
,ArpSpaCodec
,ArpThaCodec
,ArpTpaCodec
,CtMarkCodec
,CtStateCodec
,CtTpDstCodec
,CtTpSrcCodec
,CtZoneCodec
,EthDstCodec
,EthSrcCodec
,EthTypeCodec
,IcmpTypeCodec
,InPortCodec
,IpDstCodec
,IpSrcCodec
,Ipv6DstCodec
,Ipv6SrcCodec
,MetadataCodec
,MplsLabelCodec
,PktMarkCodec
,TcpDstCodec
,TcpSrcCodec
,TunIdCodec
,TunIpv4DstCodec
,TunIpv4SrcCodec
,UdpDstCodec
,UdpSrcCodec
public abstract class AbstractMatchCodec extends Object implements OFSerializer<MatchEntry>, OFDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, HeaderDeserializer<MatchEntry>
-
-
Field Summary
Fields Modifier and Type Field Description protected NxmHeader
headerWithMask
protected NxmHeader
headerWithoutMask
-
Constructor Summary
Constructors Constructor Description AbstractMatchCodec()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected NxmHeader
buildHeader(boolean hasMask)
MatchEntry
deserializeHeader(io.netty.buffer.ByteBuf message)
Deserializes a byte message headers.protected MatchEntryBuilder
deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)
protected NxmHeader
getHeader(boolean hasMask)
NxmHeader
getHeaderWithHasMask()
NxmHeader
getHeaderWithoutHasMask()
abstract Class<? extends MatchField>
getNxmField()
Returns the nxm_field class.abstract int
getNxmFieldCode()
Returns the numeric representation of nxm_field.abstract Class<? extends OxmClassBase>
getOxmClass()
Returns the oxm_class class.abstract int
getOxmClassCode()
Returns the numeric representation of oxm_class.abstract int
getValueLength()
Returns the match entry value length.void
serializeHeader(NxmHeader 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
-
-
-
-
Method Detail
-
deserializeHeaderToBuilder
protected MatchEntryBuilder deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)
-
deserializeHeader
public MatchEntry deserializeHeader(io.netty.buffer.ByteBuf message)
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
public void serializeHeader(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
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
public void serializeHeader(NxmHeader input, io.netty.buffer.ByteBuf outBuffer)
-
getHeader
protected NxmHeader getHeader(boolean hasMask)
-
buildHeader
protected NxmHeader buildHeader(boolean hasMask)
-
getHeaderWithoutHasMask
public NxmHeader getHeaderWithoutHasMask()
-
getHeaderWithHasMask
public NxmHeader getHeaderWithHasMask()
-
getNxmFieldCode
public abstract int getNxmFieldCode()
Returns the numeric representation of nxm_field.
-
getOxmClassCode
public abstract int getOxmClassCode()
Returns the numeric representation of oxm_class.
-
getValueLength
public abstract int getValueLength()
Returns the match entry value length.
-
getNxmField
public abstract Class<? extends MatchField> getNxmField()
Returns the nxm_field class.
-
getOxmClass
public abstract Class<? extends OxmClassBase> getOxmClass()
Returns the oxm_class class.
-
-