public final class Frame extends Object
Constructor and Description |
---|
Frame()
Constructor with empty JSON data.
|
Frame(String json)
Constructor with the given JSON string.
|
Modifier and Type | Method and Description |
---|---|
Control |
getControl()
Gets the control part.
|
String |
getDebugMessage()
Converts to a JSON string that is safe to print in debug messages.
|
Headers |
getHeaders()
Gets the headers.
|
Payload |
getPayload()
Gets the payload part.
|
String |
toString()
Converts to a JSON string.
|
public Frame()
public Frame(String json) throws org.json.JSONException
json
- JSON dataorg.json.JSONException
public Headers getHeaders()
public Control getControl()
public Payload getPayload()
public String toString()
public String getDebugMessage()