public class WSAdapterUtils extends Object
WSAdapterUtils is used to generalize webservice calls.| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.http.client.methods.CloseableHttpResponse |
getResource(String fullURL)
Call a GET routine on given resource URL.
|
protected static org.apache.http.client.methods.CloseableHttpResponse |
putResource(String json,
String fullURL)
Calls a PUT routine with given JSON on given resource URL.
|
protected static org.apache.http.client.methods.CloseableHttpResponse putResource(String json, String fullURL) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
json - the input JSONfullURL - the resource URLorg.apache.http.client.ClientProtocolException - if an error exists in the HTTP protocolIOException - IO ErrorURISyntaxException - url is not validprotected static org.apache.http.client.methods.CloseableHttpResponse getResource(String fullURL) throws IOException, URISyntaxException
fullURL - the resource URLIOException - IO errorURISyntaxException - if url is not validCopyright © 2017. All rights reserved.