Package org.onosproject.net.flow
Interface ExtensionTreatmentCodec
-
- All Superinterfaces:
Behaviour
,HandlerBehaviour
public interface ExtensionTreatmentCodec extends HandlerBehaviour
Interface for encode and decode extension treatment.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ExtensionTreatment
decode(com.fasterxml.jackson.databind.node.ObjectNode objectNode, CodecContext context)
Decodes an JSON object to an extension treatment.default com.fasterxml.jackson.databind.node.ObjectNode
encode(ExtensionTreatment extensionTreatment, CodecContext context)
Encodes an extension treatment 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(ExtensionTreatment extensionTreatment, CodecContext context)
Encodes an extension treatment to an JSON object.- Parameters:
extensionTreatment
- extension treatmentcontext
- encoding context- Returns:
- JSON object
-
decode
default ExtensionTreatment decode(com.fasterxml.jackson.databind.node.ObjectNode objectNode, CodecContext context)
Decodes an JSON object to an extension treatment.- Parameters:
objectNode
- JSON objectcontext
- decoding context- Returns:
- extension treatment
-
-