public class Client extends Object
Constructor and Description |
---|
Client()
Constructor.
|
Client(String host)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
deleteRequest(String restUrl,
Map<String,String> params)
Do a DELETE HTTP request to the given REST-URL.
|
Object |
getRequest(String restUrl,
Map<String,String> params)
Do a GET HTTP request to the given REST-URL.
|
Object |
postRequest(String restUrl,
Map<String,String> params)
Do a POST HTTP request to the given REST-URL.
|
Object |
putRequest(String restUrl,
Map<String,String> params)
Do a PUT HTTP request to the given REST-URL.
|
public Client()
public Client(String host)
host
- Host which will receive the calls.public Object getRequest(String restUrl, Map<String,String> params) throws IOException, WebServiceException
restUrl
- REST URL.params
- Parameters for adding to the query string.IOException
- if the request go bad.WebServiceException
public Object postRequest(String restUrl, Map<String,String> params) throws IOException, WebServiceException
restUrl
- REST URL.params
- Parameters for adding to the query string.IOException
- if the request go bad.WebServiceException
public Object putRequest(String restUrl, Map<String,String> params) throws IOException, WebServiceException
restUrl
- REST URL.params
- Parameters for adding to the query string.IOException
- if the request go bad.WebServiceException
public Object deleteRequest(String restUrl, Map<String,String> params) throws IOException, WebServiceException
restUrl
- REST URL.params
- Parameters for adding to the query string.IOException
- if the request go bad.WebServiceException
Copyright © 2012 ElPaso Software. All Rights Reserved.