public final class EncodeMappingInstructionCodecHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
EncodeMappingInstructionCodecHelper(MappingInstruction instruction,
org.onosproject.codec.CodecContext context)
Creates a mapping instruction object encoder.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
encode()
Encodes the given mapping instruction into JSON.
|
public EncodeMappingInstructionCodecHelper(MappingInstruction instruction, org.onosproject.codec.CodecContext context)
instruction - mapping instruction to encodecontext - codec context for the encoding