public abstract class ServiceResponse extends java.lang.Object implements JsonSerializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id |
protected java.lang.String |
name |
protected java.lang.String |
type |
protected java.lang.String |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceResponse(java.lang.String type,
JsonValue jv) |
protected |
ServiceResponse(java.lang.String type,
ServiceResponse template) |
protected |
ServiceResponse(java.lang.String type,
java.lang.String id,
java.lang.String name,
java.lang.String version) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
The unique ID of the service reporting the status
|
java.lang.String |
getName()
The kind of the service reporting the status
|
java.lang.String |
getType()
The type of this response;
|
java.lang.String |
getVersion()
Version of the service
|
int |
hashCode() |
protected static JsonValue |
parseMessage(byte[] bytes) |
protected void |
subToJson(java.lang.StringBuilder sb) |
java.lang.String |
toJson() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitserialize, toJsonValueprotected final java.lang.String type
protected final java.lang.String name
protected final java.lang.String id
protected final java.lang.String version
protected ServiceResponse(java.lang.String type,
java.lang.String id,
java.lang.String name,
java.lang.String version)
protected ServiceResponse(java.lang.String type,
ServiceResponse template)
protected ServiceResponse(java.lang.String type,
JsonValue jv)
protected static JsonValue parseMessage(byte[] bytes)
public java.lang.String getType()
public java.lang.String getName()
public java.lang.String getId()
public java.lang.String getVersion()
protected void subToJson(java.lang.StringBuilder sb)
public java.lang.String toJson()
toJson in interface JsonSerializablepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object