Class OF13MatchSerializer
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.util.OF13MatchSerializer
-
- All Implemented Interfaces:
OFGeneralSerializer
,OFSerializer<Match>
,SerializerRegistryInjector
public class OF13MatchSerializer extends Object implements OFSerializer<Match>, SerializerRegistryInjector
Serializes ofp_match (OpenFlow v1.3).- Author:
- michal.polkorab, timotej.kubas
-
-
Constructor Summary
Constructors Constructor Description OF13MatchSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectSerializerRegistry(SerializerRegistry serializerRegistry)
Injects serializer registry.void
serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeMatchEntries(List<MatchEntry> matchEntries, io.netty.buffer.ByteBuf out)
Serializes MatchEntries.
-
-
-
Method Detail
-
serialize
public void serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Match>
- Parameters:
match
- object to be serializedoutBuffer
- output buffer
-
serializeMatchEntries
public void serializeMatchEntries(List<MatchEntry> matchEntries, io.netty.buffer.ByteBuf out)
Serializes MatchEntries.- Parameters:
matchEntries
- list of match entries (oxm_fields)out
- output ByteBuf
-
injectSerializerRegistry
public void injectSerializerRegistry(SerializerRegistry serializerRegistry)
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-
-