public abstract class AbstractMatchCodec extends Object implements OFSerializer<MatchEntry>, OFDeserializer<MatchEntry>, HeaderSerializer<MatchEntry>, HeaderDeserializer<MatchEntry>
Modifier and Type | Field and Description |
---|---|
protected EricHeader |
headerWithMask |
protected EricHeader |
headerWithoutMask |
Constructor and Description |
---|
AbstractMatchCodec() |
Modifier and Type | Method and Description |
---|---|
protected EricHeader |
buildHeader(boolean hasMask) |
MatchEntry |
deserializeHeader(io.netty.buffer.ByteBuf message)
Deserializes a byte message headers.
|
protected MatchEntryBuilder |
deserializeHeaderToBuilder(io.netty.buffer.ByteBuf message) |
abstract Class<? extends MatchField> |
getEricField()
Returns the eric_field class.
|
abstract int |
getEricFieldCode()
Returns the numeric representation of eric_field.
|
protected EricHeader |
getHeader(boolean hasMask) |
EricHeader |
getHeaderWithHasMask() |
EricHeader |
getHeaderWithoutHasMask() |
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(EricHeader input,
io.netty.buffer.ByteBuf outBuffer) |
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 EricHeader headerWithMask
protected EricHeader 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 void serializeHeader(EricHeader input, io.netty.buffer.ByteBuf outBuffer)
protected EricHeader getHeader(boolean hasMask)
protected EricHeader buildHeader(boolean hasMask)
public EricHeader getHeaderWithoutHasMask()
public EricHeader getHeaderWithHasMask()
public abstract int getEricFieldCode()
public abstract int getOxmClassCode()
public abstract int getValueLength()
public abstract Class<? extends MatchField> getEricField()
public abstract Class<? extends OxmClassBase> getOxmClass()
Copyright © 2020 OpenDaylight. All rights reserved.