Class AbstractOxmMatchEntryDeserializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.deserialization.match.AbstractOxmMatchEntryDeserializer
-
- All Implemented Interfaces:
HeaderDeserializer<MatchEntry>
,OFDeserializer<MatchEntry>
,OFGeneralDeserializer
- Direct Known Subclasses:
AbstractOxmExperimenterMatchEntryDeserializer
,OxmArpOpDeserializer
,OxmArpShaDeserializer
,OxmArpSpaDeserializer
,OxmArpThaDeserializer
,OxmArpTpaDeserializer
,OxmEthDstDeserializer
,OxmEthSrcDeserializer
,OxmEthTypeDeserializer
,OxmIcmpv4CodeDeserializer
,OxmIcmpv4TypeDeserializer
,OxmIcmpv6CodeDeserializer
,OxmIcmpv6TypeDeserializer
,OxmInPhyPortDeserializer
,OxmInPortDeserializer
,OxmIpDscpDeserializer
,OxmIpEcnDeserializer
,OxmIpProtoDeserializer
,OxmIpv4DstDeserializer
,OxmIpv4SrcDeserializer
,OxmIpv6DstDeserializer
,OxmIpv6ExtHdrDeserializer
,OxmIpv6FlabelDeserializer
,OxmIpv6NdSllDeserializer
,OxmIpv6NdTargetDeserializer
,OxmIpv6NdTllDeserializer
,OxmIpv6SrcDeserializer
,OxmMetadataDeserializer
,OxmMplsBosDeserializer
,OxmMplsLabelDeserializer
,OxmMplsTcDeserializer
,OxmPacketTypeDeserializer
,OxmPbbIsidDeserializer
,OxmSctpDstDeserializer
,OxmSctpSrcDeserializer
,OxmTcpDstDeserializer
,OxmTcpSrcDeserializer
,OxmTunnelIdDeserializer
,OxmUdpDstDeserializer
,OxmUdpSrcDeserializer
,OxmVlanPcpDeserializer
,OxmVlanVidDeserializer
public abstract class AbstractOxmMatchEntryDeserializer extends Object implements HeaderDeserializer<MatchEntry>, OFDeserializer<MatchEntry>
Base class for an Oxm match entry deserializer.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractOxmMatchEntryDeserializer(Class<? extends MatchField> oxmField)
protected
AbstractOxmMatchEntryDeserializer(Class<? extends OxmClassBase> oxmClass, Class<? extends MatchField> oxmField)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MatchEntry
deserialize(io.netty.buffer.ByteBuf input)
Transforms byte message into POJO/DTO (of type E).protected abstract void
deserialize(io.netty.buffer.ByteBuf input, MatchEntryBuilder builder)
MatchEntry
deserializeHeader(io.netty.buffer.ByteBuf input)
Deserializes a byte message headers.protected MatchEntryBuilder
processHeader(io.netty.buffer.ByteBuf input)
Prepares match entry header - sets oxm_class, oxm_field, hasMask + sets the buffer.readerIndex() to the end of match entry - where augmentation starts.
-
-
-
Constructor Detail
-
AbstractOxmMatchEntryDeserializer
protected AbstractOxmMatchEntryDeserializer(Class<? extends OxmClassBase> oxmClass, Class<? extends MatchField> oxmField)
-
AbstractOxmMatchEntryDeserializer
protected AbstractOxmMatchEntryDeserializer(Class<? extends MatchField> oxmField)
-
-
Method Detail
-
deserialize
public final MatchEntry deserialize(io.netty.buffer.ByteBuf input)
Description copied from interface:OFDeserializer
Transforms byte message into POJO/DTO (of type E).- Specified by:
deserialize
in interfaceOFDeserializer<MatchEntry>
- Parameters:
input
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
deserialize
protected abstract void deserialize(io.netty.buffer.ByteBuf input, MatchEntryBuilder builder)
-
deserializeHeader
public final MatchEntry deserializeHeader(io.netty.buffer.ByteBuf input)
Description copied from interface:HeaderDeserializer
Deserializes a byte message headers.- Specified by:
deserializeHeader
in interfaceHeaderDeserializer<MatchEntry>
- Parameters:
input
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
processHeader
protected final MatchEntryBuilder processHeader(io.netty.buffer.ByteBuf input)
Prepares match entry header - sets oxm_class, oxm_field, hasMask + sets the buffer.readerIndex() to the end of match entry - where augmentation starts.- Parameters:
input
- input bytebuf- Returns:
- MatchEntriesBuilder which can be filled with MatchEntry augmentation
-
-