public final class ResourceMessage extends Message
Modifier and Type | Class and Description |
---|---|
static class |
ResourceMessage.Builder
Builder extends
MessageBuilder class. |
static class |
ResourceMessage.ReportResponse |
static class |
ResourceMessage.Type
Enumeration for choosing type of the resource directory message.
|
Message.Direction, Message.MessageBuilder<T extends Message.MessageBuilder<T>>, Message.Priority, Message.Reliability
DIAG_CLIENT_ADDRESS, DIAG_CREATED_TIME
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getEndpointName()
Returns endpoint id for the message
|
static java.lang.String |
getMD5ofList(java.util.List<java.lang.String> resStrings)
Calculates the MD5 hash value for a list of Strings.
|
ResourceMessage.Type |
getMessageType()
Returns type of the message (Could be UPDATE or DELETE)
|
java.lang.String |
getReconciliationMark() |
java.util.List<Resource> |
getResources()
Returns List of resources described in the message.
|
Message.Type |
getType()
Abstract method to return message type.
|
int |
hashCode() |
org.json.JSONObject |
toJson()
Method to export the Resource Directory message to
JSONObject . |
java.lang.String |
toString()
Exports data from
ResourceMessage to String using JSON interpretation of the message. |
createBuilderFromJson, fromJson, fromJson, fromJson, getClientId, getDestination, getDiagnostics, getDiagnosticValue, getDirection, getEventTime, getId, getOrdinal, getPriority, getProperties, getReceivedTime, getReliability, getRemainingRetries, getSender, getSentTime, getSource, prettyPrintJson, prettyPrintJson, prettyPrintJson, prettyPrintJson, setRemainingRetries, toJson, toJson
public static java.lang.String getMD5ofList(java.util.List<java.lang.String> resStrings)
resStrings
- List os Stringspublic java.lang.String toString()
ResourceMessage
to String
using JSON interpretation of the message.public org.json.JSONObject toJson()
JSONObject
.toJson
in class Message
ResourceMessage
public Message.Type getType()
Message
public java.util.List<Resource> getResources()
null
public ResourceMessage.Type getMessageType()
public java.lang.String getReconciliationMark()
public java.lang.String getEndpointName()