Class TableFeaturesResponseConvertor
java.lang.Object
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.TableFeaturesResponseConvertor
public class TableFeaturesResponseConvertor
extends Convertor<MultipartReplyTableFeatures,List<TableFeatures>,VersionConvertorData>
Converts a OF library table features into the MD-SAL library table features.
Example usage:
VersionConvertorData data = new VersionConvertorData(version);
Optional<List<TableFeatures>> salFeatures = convertorManager.convert(ofTableFeatures, data);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(MultipartReplyTableFeatures source, VersionConvertorData data) 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
-
TableFeaturesResponseConvertor
public TableFeaturesResponseConvertor()
-
-
Method Details
-
getTypes
Description copied from class:Convertor
Gets type of convertor, used inConvertorManager
.- Specified by:
getTypes
in classConvertor<MultipartReplyTableFeatures,
List<TableFeatures>, VersionConvertorData> - Returns:
- the type of convertor
-
convert
Description copied from class:Convertor
Converts source to result.- Specified by:
convert
in classConvertor<MultipartReplyTableFeatures,
List<TableFeatures>, VersionConvertorData> - Parameters:
source
- sourcedata
- convertor data- Returns:
- converted source
-