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 SummaryConstructors
- 
Method SummaryModifier 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- 
AbstractOxmMatchEntrySerializerpublic AbstractOxmMatchEntrySerializer()
 
- 
- 
Method Details- 
serializeDescription copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
- serializein interface- OFSerializer<MatchEntry>
- Parameters:
- entry- object to be serialized
- outBuffer- output buffer
 
- 
serializeHeaderDescription copied from interface:HeaderSerializerSerializes object headers (e.g. for Multipart message - Table Features).- Specified by:
- serializeHeaderin interface- HeaderSerializer<MatchEntry>
- Parameters:
- entry- object whose headers should be serialized
- outBuffer- output buffer
 
- 
writeMaskprotected static void writeMask(byte[] mask, io.netty.buffer.ByteBuf out, int length) 
- 
writeOxmFieldAndLengthprotected static void writeOxmFieldAndLength(io.netty.buffer.ByteBuf out, int fieldValue, boolean hasMask, int lengthArg) 
- 
getOxmFieldCodeprotected abstract int getOxmFieldCode()Returns the numeric representation of oxm_field.
- 
getOxmClassCodeprotected abstract int getOxmClassCode()Returns the numeric representation of oxm_class.
- 
getValueLengthprotected abstract int getValueLength()Returns the match entry value length (without mask length).
 
-