Package org.ametys.odf
Class CallWSHelper
- java.lang.Object
-
- org.ametys.odf.CallWSHelper
-
public final class CallWSHelper extends Object
Helper for calling WS on a remote server
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
callWS(String url, InputStream is, Logger logger)
Request the given url on remote serverstatic Set<String>
callWS(String url, Map<String,String> parameters, Logger logger)
Request the given url on remote server
-
-
-
Method Detail
-
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 parameterslogger
- 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 entitylogger
- 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.
-
-