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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract intReturns the numeric representation of oxm_class.protected abstract intReturns the numeric representation of oxm_field.protected abstract intReturns the match entry value length (without mask length).voidserialize(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).voidserializeHeader(MatchEntry entry, io.netty.buffer.ByteBuf outBuffer) Serializes object headers (e.g.protected static voidwriteMask(byte[] mask, io.netty.buffer.ByteBuf out, int length) protected static voidwriteOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg)
-
Constructor Details
-
AbstractOxmMatchEntrySerializer
public AbstractOxmMatchEntrySerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
serializein interfaceOFSerializer<MatchEntry>- Parameters:
entry- object to be serializedoutBuffer- output buffer
-
serializeHeader
Description copied from interface:HeaderSerializerSerializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeaderin 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).
-