Class AbstractOxmMatchEntrySerializer
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.serialization.match.AbstractOxmMatchEntrySerializer
- All Implemented Interfaces:
HeaderSerializer<MatchEntry>
,OFGeneralSerializer
,OFSerializer<MatchEntry>
- Direct Known Subclasses:
AbstractOxmExperimenterMatchEntrySerializer
,AbstractOxmIpv4AddressSerializer
,AbstractOxmIpv6AddressSerializer
,AbstractOxmMacAddressSerializer
,OxmArpOpSerializer
,OxmEthTypeSerializer
,OxmIcmpv4CodeSerializer
,OxmIcmpv4TypeSerializer
,OxmIcmpv6CodeSerializer
,OxmIcmpv6TypeSerializer
,OxmInPhyPortSerializer
,OxmInPortSerializer
,OxmIpDscpSerializer
,OxmIpEcnSerializer
,OxmIpProtoSerializer
,OxmIpv6ExtHdrSerializer
,OxmIpv6FlabelSerializer
,OxmMetadataSerializer
,OxmMplsBosSerializer
,OxmMplsLabelSerializer
,OxmMplsTcSerializer
,OxmPacketTypeSerializer
,OxmPbbIsidSerializer
,OxmSctpDstSerializer
,OxmSctpSrcSerializer
,OxmTcpDstSerializer
,OxmTcpSrcSerializer
,OxmTunnelIdSerializer
,OxmUdpDstSerializer
,OxmUdpSrcSerializer
,OxmVlanPcpSerializer
,OxmVlanVidSerializer
public abstract class AbstractOxmMatchEntrySerializer
extends Object
implements OFSerializer<MatchEntry>, HeaderSerializer<MatchEntry>
Parent for all match entry serializers.
- Author:
- michal.polkorab
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract int
Returns the numeric representation of oxm_class.protected abstract int
Returns the numeric representation of oxm_field.protected abstract int
Returns the match entry value length (without mask length).void
serialize
(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader
(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.protected static void
writeMask
(byte[] mask, io.netty.buffer.ByteBuf out, int length) protected static void
writeOxmFieldAndLength
(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg)
-
Constructor Details
-
AbstractOxmMatchEntrySerializer
public AbstractOxmMatchEntrySerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<MatchEntry>
- Parameters:
entry
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<MatchEntry>
- Parameters:
entry
- object whose headers should be serializedoutBuffer
- output buffer
-
writeMask
protected static void writeMask(byte[] mask, io.netty.buffer.ByteBuf out, int length) -
writeOxmFieldAndLength
protected static void writeOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg) -
getOxmFieldCode
protected abstract int getOxmFieldCode()Returns the numeric representation of oxm_field. -
getOxmClassCode
protected abstract int getOxmClassCode()Returns the numeric representation of oxm_class. -
getValueLength
protected abstract int getValueLength()Returns the match entry value length (without mask length).
-