Package org.onosproject.net.flow
Interface ExtensionSelectorCodec
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface ExtensionSelectorCodec extends HandlerBehaviour
Interface for encode and decode extension selector.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ExtensionSelector
decode(com.fasterxml.jackson.databind.node.ObjectNode objectNode, CodecContext context)
Decodes an JSON object to an extension selector.default com.fasterxml.jackson.databind.node.ObjectNode
encode(ExtensionSelector extensionSelector, CodecContext context)
Encodes an extension selector to an JSON object.-
Methods inherited from interface org.onosproject.net.driver.HandlerBehaviour
handler, setHandler
-
-
-
-
Method Detail
-
encode
default com.fasterxml.jackson.databind.node.ObjectNode encode(ExtensionSelector extensionSelector, CodecContext context)
Encodes an extension selector to an JSON object.- Parameters:
extensionSelector
- extension selectorcontext
- encoding context- Returns:
- JSON object
-
decode
default ExtensionSelector decode(com.fasterxml.jackson.databind.node.ObjectNode objectNode, CodecContext context)
Decodes an JSON object to an extension selector.- Parameters:
objectNode
- JSON objectcontext
- decoding context- Returns:
- extension selector
-
-