public class RESTClient extends Object implements IWebserviceClient
Modifier and Type | Class and Description |
---|---|
static class |
RESTClient.REQUEST_TYPE
Supported request types
|
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_TYPE
Client type for webservices
|
Constructor and Description |
---|
RESTClient()
Default constructor
|
RESTClient(String SERVER,
String METHOD_NAME)
Field constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addParam(String param,
Object value) |
void |
createRequest() |
Object |
getResult()
Gets the result returned by the webservice
|
void |
sendRequest(Class<?> cl,
boolean simple,
RESTClient.REQUEST_TYPE type,
JSONObject json) |
void |
setMETHOD_NAME(String METHOD_NAME) |
public static final String CLIENT_TYPE
public void createRequest()
createRequest
in interface IWebserviceClient
public void addParam(String param, Object value)
addParam
in interface IWebserviceClient
public void setMETHOD_NAME(String METHOD_NAME)
setMETHOD_NAME
in interface IWebserviceClient
public Object getResult()
getResult
in interface IWebserviceClient
public void sendRequest(Class<?> cl, boolean simple, RESTClient.REQUEST_TYPE type, JSONObject json) throws ClientProtocolException, SSLException, CertificateException, IOException, JSONException