Class WSAdapterUtils

java.lang.Object
org.helm.notation2.wsadapter.WSAdapterUtils

public class WSAdapterUtils
extends Object
WSAdapterUtils is used to generalize webservice calls.
Version:
$Id$
Author:
Marco Lanig
  • Method Details

    • putResource

      protected static org.apache.http.client.methods.CloseableHttpResponse putResource​(String json, String fullURL) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
      Calls a PUT routine with given JSON on given resource URL.
      Parameters:
      json - the input JSON
      fullURL - the resource URL
      Returns:
      Response
      Throws:
      org.apache.http.client.ClientProtocolException - if an error exists in the HTTP protocol
      IOException - IO Error
      URISyntaxException - url is not valid
    • getResource

      protected static org.apache.http.client.methods.CloseableHttpResponse getResource​(String fullURL) throws IOException, URISyntaxException
      Call a GET routine on given resource URL.
      Parameters:
      fullURL - the resource URL
      Returns:
      Response
      Throws:
      IOException - IO error
      URISyntaxException - if url is not valid