Package com.chemaxon.dif.ws.api
Class GenericWSResponse
- java.lang.Object
-
- com.chemaxon.dif.ws.api.GenericWSResponse
-
- All Implemented Interfaces:
WSResponse
public class GenericWSResponse extends Object implements WSResponse
Generic web service response.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.chemaxon.dif.ws.api.WSResponse
WSResponse.Type
-
-
Constructor Summary
Constructors Constructor Description GenericWSResponse(WSResponse.Type type, int statusCode, Object data)
GenericWSResponse(String errorMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
int
getHTTPStatusCode()
WSResponse.Type
getType()
-
-
-
Constructor Detail
-
GenericWSResponse
public GenericWSResponse(WSResponse.Type type, int statusCode, Object data)
-
GenericWSResponse
public GenericWSResponse(String errorMessage)
-
-
Method Detail
-
getType
public WSResponse.Type getType()
- Specified by:
getType
in interfaceWSResponse
- Returns:
- web service response type
-
getHTTPStatusCode
public int getHTTPStatusCode()
- Specified by:
getHTTPStatusCode
in interfaceWSResponse
- Returns:
- HTTP status code - 200, 400, etc.
-
getData
public Object getData()
- Specified by:
getData
in interfaceWSResponse
- Returns:
- data returned by the web service
-
-