public abstract class AbstractMatchCodec extends Object implements OFSerializer<MatchEntry>, OFDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, HeaderDeserializer<MatchEntry>
Modifier and Type | Field and Description |
---|---|
protected NxmHeader |
headerWithMask |
protected NxmHeader |
headerWithoutMask |
Constructor and Description |
---|
AbstractMatchCodec() |
Modifier and Type | Method and Description |
---|---|
MatchEntry |
deserializeHeader(io.netty.buffer.ByteBuf message)
Deserializes a byte message headers.
|
protected MatchEntryBuilder |
deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message) |
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(MatchEntry input,
io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize
deserialize
protected NxmHeader headerWithMask
protected NxmHeader headerWithoutMask
protected MatchEntryBuilder deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message)
public MatchEntry deserializeHeader(io.netty.buffer.ByteBuf message)
HeaderDeserializer
deserializeHeader
in interface HeaderDeserializer<MatchEntry>
message
- message as bytes in ByteBufpublic void serializeHeader(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
HeaderSerializer
serializeHeader
in interface HeaderSerializer<MatchEntry>
input
- object whose headers should be serializedoutBuffer
- output bufferpublic NxmHeader getHeaderWithoutHasMask()
public NxmHeader getHeaderWithHasMask()
public abstract int getNxmFieldCode()
public abstract int getOxmClassCode()
public abstract int getValueLength()
public abstract Class<? extends MatchField> getNxmField()
public abstract Class<? extends OxmClassBase> getOxmClass()
Copyright © 2018 OpenDaylight. All rights reserved.