com.buglabs.services.ws
Interface IWSResponse

All Known Implementing Classes:
WSResponse

public interface IWSResponse

Represents a response to a web service call. Web server needs to know how to stucture the data for the client.


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.
 

Method Detail

getMimeType

java.lang.String getMimeType()
Return an appropriate mime-type for content being passed.

Returns:

getContent

java.lang.Object getContent()
Get content of response.

Returns:

isError

boolean isError()
Return true if the repsonse is an error. If the response is an error, mimeType and Content are ignored.

Returns:

getErrorCode

int getErrorCode()
Return error code if the response is an error.

Returns:

getErrorMessage

java.lang.String getErrorMessage()
Return error message if the response is an error.

Returns: