Open Kilda Java Documentation
org.openkilda.wfm.protocol.JsonMessage< T > Class Template Referenceabstract
Inheritance diagram for org.openkilda.wfm.protocol.JsonMessage< T >:
org.openkilda.wfm.protocol.AbstractMessage org.openkilda.wfm.protocol.BoltToBoltMessage< T > org.openkilda.wfm.ctrl.RouteMessage

Public Member Functions

 JsonMessage (Tuple raw) throws MessageFormatException
 
 JsonMessage (T payload)
 
getPayload ()
 
- Public Member Functions inherited from org.openkilda.wfm.protocol.AbstractMessage
List< Object > pack () throws JsonProcessingException
 

Static Public Attributes

static final String FIELD_ID_JSON = "json"
 
static final Fields FORMAT = new Fields(FIELD_ID_JSON)
 

Protected Member Functions

abstract T unpackJson (String json) throws IOException
 
Object packField (String fieldId) throws JsonProcessingException
 
Fields getFormat ()
 
- Protected Member Functions inherited from org.openkilda.wfm.protocol.AbstractMessage
Object packField (String fieldId) throws JsonProcessingException
 
abstract Fields getFormat ()
 

Detailed Description

Definition at line 11 of file JsonMessage.java.

Constructor & Destructor Documentation

◆ JsonMessage() [1/2]

Definition at line 18 of file JsonMessage.java.

◆ JsonMessage() [2/2]

Definition at line 29 of file JsonMessage.java.

Member Function Documentation

◆ getFormat()

Fields org.openkilda.wfm.protocol.JsonMessage< T >.getFormat ( )
protected

Definition at line 48 of file JsonMessage.java.

◆ getPayload()

Definition at line 35 of file JsonMessage.java.

◆ packField()

Object org.openkilda.wfm.protocol.JsonMessage< T >.packField ( String  fieldId) throws JsonProcessingException
protected

Definition at line 40 of file JsonMessage.java.

◆ unpackJson()

abstract T org.openkilda.wfm.protocol.JsonMessage< T >.unpackJson ( String  json) throws IOException
abstractprotected

Member Data Documentation

◆ FIELD_ID_JSON

final String org.openkilda.wfm.protocol.JsonMessage< T >.FIELD_ID_JSON = "json"
static

Definition at line 12 of file JsonMessage.java.

◆ FORMAT

final Fields org.openkilda.wfm.protocol.JsonMessage< T >.FORMAT = new Fields(FIELD_ID_JSON)
static

Definition at line 14 of file JsonMessage.java.


The documentation for this class was generated from the following file: