public final class CallWSHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
CallWSHelper() |
Modifier and Type | Method and Description |
---|---|
private static CloseableHttpClient |
_getHttpClient() |
static Set<String> |
callWS(String url,
InputStream is,
Logger logger)
Request the given url on remote server
|
static Set<String> |
callWS(String url,
Map<String,String> parameters,
Logger logger)
Request the given url on remote server
|
private CallWSHelper()
public static Set<String> callWS(String url, Map<String,String> parameters, Logger logger)
url
- the url to be called.parameters
- the HTTP parameterslogger
- The logger for tracesnull
if a global error occurred.public static Set<String> callWS(String url, InputStream is, Logger logger)
url
- the url to be called.is
- The input stream for HTTP entitylogger
- The logger for tracesnull
if a global error occurred.private static CloseableHttpClient _getHttpClient()