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
Edit s. |
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()
PatchMessage
documentId
in interface PatchMessage<JsonPatchEdit>
String
the document documentId.public String clientId()
PatchMessage
clientId
in interface PatchMessage<JsonPatchEdit>
String
the client identifier.public Queue<JsonPatchEdit> edits()
PatchMessage
Edit
s.edits
in interface PatchMessage<JsonPatchEdit>
Queue<Edit>
the individual edits.public String asJson()
Payload
asJson
in interface Payload<PatchMessage<JsonPatchEdit>>
String
the payload as a JSON String representationpublic JsonPatchMessage fromJson(String json)
Payload
String
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.