public class JsonPatchMessage extends Object implements PatchMessage<JsonPatchEdit>
| Constructor and Description |
|---|
JsonPatchMessage(String documentId,
String clientId,
Queue<JsonPatchEdit> edits) |
| Modifier and Type | Method and Description |
|---|---|
String |
asJson()
Transforms this payload to a JSON String representation.
|
String |
clientId()
Identifies the client that this edit instance belongs to.
|
String |
documentId()
Identifies the document that this edit is related to
|
Queue<JsonPatchEdit> |
edits()
The individual
Edits. |
JsonPatchMessage |
fromJson(String json)
Transforms the passed in
String JSON representation into this payloads type. |
String |
toString() |
public JsonPatchMessage(String documentId, String clientId, Queue<JsonPatchEdit> edits)
public String documentId()
PatchMessagedocumentId in interface PatchMessage<JsonPatchEdit>String the document documentId.public String clientId()
PatchMessageclientId in interface PatchMessage<JsonPatchEdit>String the client identifier.public Queue<JsonPatchEdit> edits()
PatchMessageEdits.edits in interface PatchMessage<JsonPatchEdit>Queue<Edit> the individual edits.public String asJson()
PayloadasJson in interface Payload<PatchMessage<JsonPatchEdit>>String the payload as a JSON String representationpublic JsonPatchMessage fromJson(String json)
PayloadString JSON representation into this payloads type.fromJson in interface Payload<PatchMessage<JsonPatchEdit>>json - a string representation of this payloads typeT an instance of this payloads typeCopyright © 2015 JBoss by Red Hat. All Rights Reserved.