|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.visualization.datasource.base.ResponseStatus
public class ResponseStatus
A response status holds three parameters: 1) The response type (Ok, Warning or Error). 2) The response reason type. 3) A string with an error message to the user.
| Field Summary | |
|---|---|
static java.lang.String |
SIGN_IN_MESSAGE_KEY
The sign in message key in the ResourceBundle |
| Constructor Summary | |
|---|---|
ResponseStatus(StatusType statusType)
|
|
ResponseStatus(StatusType statusType,
ReasonType reasonType,
java.lang.String description)
Constructs a response status object. |
|
| Method Summary | |
|---|---|
static ResponseStatus |
createResponseStatus(DataSourceException dse)
Creates a ResponseStatus for the given DataSourceException. |
java.lang.String |
getDescription()
Returns the message to pass to the user. |
static ResponseStatus |
getModifiedResponseStatus(ResponseStatus responseStatus)
Gets a modified response status in case of ReasonType#USER_NOT_AUTHENTICATED
by adding a sign in html link for the given url. |
ReasonType |
getReasonType()
Returns the response reason type. |
StatusType |
getStatusType()
Returns the response status type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SIGN_IN_MESSAGE_KEY
ResourceBundle
| Constructor Detail |
|---|
public ResponseStatus(StatusType statusType,
ReasonType reasonType,
java.lang.String description)
statusType - The response status type.reasonType - The response reason type.description - A message to be passed to the user.public ResponseStatus(StatusType statusType)
| Method Detail |
|---|
public static ResponseStatus createResponseStatus(DataSourceException dse)
dse - The data source exception.
public static ResponseStatus getModifiedResponseStatus(ResponseStatus responseStatus)
ReasonType#USER_NOT_AUTHENTICATED
by adding a sign in html link for the given url. If no url is provided in the
ResponseStatus# no change is made.
responseStatus - The response status.
public StatusType getStatusType()
public ReasonType getReasonType()
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||