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 Details

    • OF13MatchSerializer

      public OF13MatchSerializer()
  • Method Details

    • 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 interface OFSerializer<Match>
      Parameters:
      match - object to be serialized
      outBuffer - 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 interface SerializerRegistryInjector
      Parameters:
      serializerRegistry - registry instance