|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.services.ws.WSResponse
public class WSResponse
A simple IWSResponse implementation.
| Field Summary | |
|---|---|
static IWSResponse |
UnimplementedErrorResponse
|
| Constructor Summary | |
|---|---|
WSResponse(int errorCode,
java.lang.String errorMessage)
|
|
WSResponse(java.lang.Object content,
java.lang.String mimeType)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
Get content of response. |
int |
getErrorCode()
Return error code if the response is an error. |
java.lang.String |
getErrorMessage()
Return error message if the response is an error. |
java.lang.String |
getMimeType()
Return an appropriate mime-type for content being passed. |
boolean |
isError()
Return true if the repsonse is an error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final IWSResponse UnimplementedErrorResponse
| Constructor Detail |
|---|
public WSResponse(java.lang.Object content,
java.lang.String mimeType)
public WSResponse(int errorCode,
java.lang.String errorMessage)
| Method Detail |
|---|
public java.lang.Object getContent()
IWSResponse
getContent in interface IWSResponsepublic boolean isError()
IWSResponse
isError in interface IWSResponsepublic int getErrorCode()
IWSResponse
getErrorCode in interface IWSResponsepublic java.lang.String getErrorMessage()
IWSResponse
getErrorMessage in interface IWSResponsepublic java.lang.String getMimeType()
IWSResponse
getMimeType in interface IWSResponse
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||