|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.extra.service.ServiceMessage
public class ServiceMessage
Constructor Summary | |
---|---|
ServiceMessage(boolean isError,
java.lang.String code,
java.lang.String msg)
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Return true if the specified object is equal to this object |
java.lang.String |
getCode()
Returns the message code |
java.lang.String |
getMessage()
Gets the message description |
java.lang.String |
getMessage(java.lang.String text)
Gets the message description |
static ServiceMessage |
getMessageForCode(java.lang.String code)
Gets the specific ServiceMessage for the specified code |
static java.util.Map<java.lang.String,ServiceMessage> |
getMessageMap()
Gets the MessageMap |
boolean |
isError()
Returns true if this message indicates an error |
boolean |
isServiceDisabledError()
Specific check for web-service disabled error |
java.lang.String |
toString()
Returns a String representation of this Message |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ServiceMessage MSG_SUCCESSFUL
public static final ServiceMessage MSG_COMMAND_MISSING
public static final ServiceMessage MSG_COMMAND_UNSUPPORTED
public static final ServiceMessage MSG_COMMAND_DISABLED
public static final ServiceMessage MSG_COMMAND_NOTAUTH
public static final ServiceMessage MSG_AUTH_FAILED
public static final ServiceMessage MSG_ACCOUNT_INVALID
public static final ServiceMessage MSG_ACCOUNT_INACTIVE
public static final ServiceMessage MSG_ACCOUNT_EXPIRED
public static final ServiceMessage MSG_ACCOUNT_HOST
public static final ServiceMessage MSG_ACCOUNT_COMMAND
public static final ServiceMessage MSG_ACCOUNT_SERVICE
public static final ServiceMessage MSG_USER_INVALID
public static final ServiceMessage MSG_USER_INACTIVE
public static final ServiceMessage MSG_DEVICE_INVALID
public static final ServiceMessage MSG_GROUP_INVALID
public static final ServiceMessage MSG_DATETIME
public static final ServiceMessage MSG_PRIVATE_XML_SYNTAX
public static final ServiceMessage MSG_PRIVATE_XML_CONFIG
public static final ServiceMessage MSG_URL_NOT_ALLOWED
public static final ServiceMessage MSG_REQUEST_DISABLED
public static final ServiceMessage MSG_REQUEST_POST_REQUIRED
public static final ServiceMessage MSG_REQUEST_XML_SYNTAX
public static final ServiceMessage MSG_REQUEST_SOAP_XML_SYNTAX
public static final ServiceMessage MSG_REQUEST_XML_INVALID
public static final ServiceMessage MSG_REQUEST_NOT_SUPPORTED
public static final ServiceMessage MSG_BAD_TABLE
public static final ServiceMessage MSG_BAD_RECORD_KEY
public static final ServiceMessage MSG_BAD_RECORD
public static final ServiceMessage MSG_NOT_FOUND
public static final ServiceMessage MSG_ALREADY_EXISTS
public static final ServiceMessage MSG_READ_FAILED
public static final ServiceMessage MSG_UPDATE_FAILED
public static final ServiceMessage MSG_INSERT_FAILED
public static final ServiceMessage MSG_DELETE_FAILED
public static final ServiceMessage MSG_PROP_BAD_KEY
public static final ServiceMessage MSG_NO_REPORT_SPECIFIED
public static final ServiceMessage MSG_REPORT_NOT_FOUND
public static final ServiceMessage MSG_REPORT_INVALID_NAME
public static final ServiceMessage MSG_REPORT_DEVICE
public static final ServiceMessage MSG_REPORT_CREATE
public static final ServiceMessage MSG_REPORT_GENERAL_ERROR
public static final ServiceMessage MSG_REPORT_UNEXPECTED
public static final ServiceMessage MSG_MAP_NOT_FOUND
public static final ServiceMessage MSG_CUSTOM_NOT_SUPPORTED
public static final ServiceMessage MSG_CUSTOM_TYPE_INVALID
Constructor Detail |
---|
public ServiceMessage(boolean isError, java.lang.String code, java.lang.String msg)
Method Detail |
---|
public static java.util.Map<java.lang.String,ServiceMessage> getMessageMap()
public static ServiceMessage getMessageForCode(java.lang.String code)
public boolean isError()
public java.lang.String getCode()
public java.lang.String getMessage()
public java.lang.String getMessage(java.lang.String text)
public boolean isServiceDisabledError()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |