Class MatchV10ResponseConvertor
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<MatchV10,MatchBuilder,VersionDatapathIdConvertorData>
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.match.MatchV10ResponseConvertor
public class MatchV10ResponseConvertor
extends Convertor<MatchV10,MatchBuilder,VersionDatapathIdConvertorData>
Converts Openflow 1.0 specific flow match to MD-SAL format flow match.
Example usage:
VersionDatapathIdConvertorData data = new VersionDatapathIdConvertorData(version);
data.setDatapathId(datapathId);
Optional<MatchBuilder> salMatch = convertorManager.convert(ofMatchV10, data);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(MatchV10 source, VersionDatapathIdConvertorData datapathIdConvertorData) Converts source to result.Collection<Class<?>>
getTypes()
Gets type of convertor, used inConvertorManager
.Methods inherited from class org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor
getConvertorExecutor, setConvertorExecutor
-
Constructor Details
-
MatchV10ResponseConvertor
public MatchV10ResponseConvertor()
-
-
Method Details
-
getTypes
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<MatchV10,
MatchBuilder, VersionDatapathIdConvertorData> - Returns:
- the type of convertor
-
convert
public MatchBuilder convert(MatchV10 source, VersionDatapathIdConvertorData datapathIdConvertorData) Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<MatchV10,
MatchBuilder, VersionDatapathIdConvertorData> - Parameters:
source
- sourcedatapathIdConvertorData
- convertor data- Returns:
- converted source
-