public class ServiceStatus
extends java.lang.Object
Although there is an "expired" flag defined, its use is not supprted by the server currently.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAM_ERROR |
static java.lang.String |
PARAM_EXPIRED |
static java.lang.String |
PARAM_MESSAGE |
| Constructor and Description |
|---|
ServiceStatus()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceStatus |
error(java.lang.String msg)
Construct a new status object with an error message.
|
static ServiceStatus |
expired()
Construct a new status object with an expired status.
|
boolean |
getError()
Get the error flag
|
java.lang.String |
getMessage()
Get the status (error) message text
|
boolean |
isExpired()
Get the expired flag
|
void |
setError(boolean error)
Set the error flag
|
void |
setExpired(boolean expired)
Set the expired flag
|
void |
setMessage(java.lang.String message)
Set the status (error) message text
|
public static final java.lang.String PARAM_ERROR
public static final java.lang.String PARAM_MESSAGE
public static final java.lang.String PARAM_EXPIRED
public static ServiceStatus error(java.lang.String msg)
msg - The text of the error messagepublic static ServiceStatus expired()
public boolean getError()
public void setError(boolean error)
error - True if an error has occurredpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message - The message textpublic boolean isExpired()
public void setExpired(boolean expired)
expired - True if the session has expired