public class HttpMethodCall extends Object
| Constructor and Description |
|---|
HttpMethodCall(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager,
String url_service,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
static String |
authenticationBase64(String username,
String password) |
String |
Call(String url_method) |
String |
Call(String url_method,
ArrayList<Object> fixed_parameters,
Map<String,Object> get_parameters) |
String |
Call(String url_method,
Map<String,Object> get_parameters) |
InputStream |
CallAsStream(String url_method) |
InputStream |
CallAsStream(String url_method,
ArrayList<Object> fixed_parameters,
Map<String,Object> get_parameters) |
InputStream |
CallAsStream(String url_method,
Map<String,Object> get_parameters) |
Boolean |
CallDelete(String url_method) |
Boolean |
CallDelete(String url_method,
Map<String,Object> parameters) |
String |
CallPost(String url_method,
Map<String,Object> Postparameters,
String content_type) |
String |
CallPost(String url_method,
String body,
Map<String,Object> Postparameters,
String content_type) |
String |
CallPost(String url_method,
String body,
String content_type) |
String |
CallPut(String url_method,
String body,
String content_type) |
InputStream |
CallStreaming(String url_method,
ArrayList<Object> fixed_parameters,
Map<String,Object> get_parameters) |
boolean |
deleteStyle(String urlString) |
String |
getUrlservice() |
boolean |
isAvailableFeatureType(String featureTypeUrl,
int trySleepTimeSc,
int maxTry) |
void |
releaseConnectionStream() |
void |
setTimeOut(int timeout) |
void |
setUrlservice(String urlservice) |
public String Call(String url_method, Map<String,Object> get_parameters) throws Exception
Exceptionpublic String Call(String url_method, ArrayList<Object> fixed_parameters, Map<String,Object> get_parameters) throws Exception
Exceptionpublic InputStream CallAsStream(String url_method, Map<String,Object> get_parameters) throws Exception
Exceptionpublic InputStream CallAsStream(String url_method) throws Exception
Exceptionpublic InputStream CallAsStream(String url_method, ArrayList<Object> fixed_parameters, Map<String,Object> get_parameters) throws Exception
Exceptionpublic void releaseConnectionStream()
public String CallPost(String url_method, String body, Map<String,Object> Postparameters, String content_type) throws Exception
Exceptionpublic String CallPost(String url_method, String body, String content_type) throws Exception
Exceptionpublic String CallPost(String url_method, Map<String,Object> Postparameters, String content_type) throws Exception
Exceptionpublic String CallPut(String url_method, String body, String content_type) throws Exception
Exceptionpublic InputStream CallStreaming(String url_method, ArrayList<Object> fixed_parameters, Map<String,Object> get_parameters) throws Exception
Exceptionpublic void setTimeOut(int timeout)
public Boolean CallDelete(String url_method, Map<String,Object> parameters) throws Exception
Exceptionpublic String getUrlservice()
public void setUrlservice(String urlservice)
urlservice - public boolean isAvailableFeatureType(String featureTypeUrl, int trySleepTimeSc, int maxTry)
featureTypeUrl - trySleepTimeSc - - time in secondsmaxTry - Copyright © 2018. All Rights Reserved.