public final class EncodeInstructionCodecHelper
extends java.lang.Object
| Constructor and Description |
|---|
EncodeInstructionCodecHelper(org.onosproject.net.flow.instructions.Instruction instruction,
org.onosproject.codec.CodecContext context)
Creates an instruction object encoder.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
encode()
Encodes the given instruction into JSON.
|
public EncodeInstructionCodecHelper(org.onosproject.net.flow.instructions.Instruction instruction,
org.onosproject.codec.CodecContext context)
instruction - instruction to encodecontext - codec context for the encoding