Class CallWSHelper

java.lang.Object
org.ametys.odf.CallWSHelper

public final class CallWSHelper extends Object
Helper for calling WS on a remote server
  • Method Details

    • callWS

      public static Set<String> callWS(String url, Map<String,String> parameters, Logger logger)
      Request the given url on remote server
      Parameters:
      url - the url to be called.
      parameters - the HTTP parameters
      logger - The logger for traces
      Returns:
      the list of server's url which failed. If empty all WS succeed. Returns null if a global error occurred.
    • callWS

      public static Set<String> callWS(String url, InputStream is, Logger logger)
      Request the given url on remote server
      Parameters:
      url - the url to be called.
      is - The input stream for HTTP entity
      logger - The logger for traces
      Returns:
      the list of server's url which failed. If empty all WS succeed. Returns null if a global error occurred.