public class JsonMergePatchMessage extends Object implements PatchMessage<JsonMergePatchEdit>
| Constructor and Description |
|---|
JsonMergePatchMessage(String documentId,
String clientId,
Queue<JsonMergePatchEdit> 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<JsonMergePatchEdit> |
edits()
The individual
Edits. |
JsonMergePatchMessage |
fromJson(String json)
Transforms the passed in
String JSON representation into this payloads type. |
String |
toString() |
public JsonMergePatchMessage(String documentId, String clientId, Queue<JsonMergePatchEdit> edits)
public String documentId()
PatchMessagedocumentId in interface PatchMessage<JsonMergePatchEdit>String the document documentId.public String clientId()
PatchMessageclientId in interface PatchMessage<JsonMergePatchEdit>String the client identifier.public Queue<JsonMergePatchEdit> edits()
PatchMessageEdits.edits in interface PatchMessage<JsonMergePatchEdit>Queue<Edit> the individual edits.public String asJson()
PayloadasJson in interface Payload<PatchMessage<JsonMergePatchEdit>>String the payload as a JSON String representationpublic JsonMergePatchMessage fromJson(String json)
PayloadString JSON representation into this payloads type.fromJson in interface Payload<PatchMessage<JsonMergePatchEdit>>json - a string representation of this payloads typeT an instance of this payloads typeCopyright © 2015 JBoss by Red Hat. All Rights Reserved.