org.gcube.common.geoserverinterface
Class HttpMethodCall

java.lang.Object
  extended by org.gcube.common.geoserverinterface.HttpMethodCall

public class HttpMethodCall
extends Object


Constructor Summary
HttpMethodCall(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager, String url_service, String user, String password)
           
 
Method Summary
 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)
           
 String getUrlservice()
           
 boolean isAvailableFeatureType(String featureTypeUrl, int trySleepTimeSc, int maxTry)
           
 void releaseConnectionStream()
           
 void setTimeOut(int timeout)
           
 void setUrlservice(String urlservice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMethodCall

public HttpMethodCall(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager connectionManager,
                      String url_service,
                      String user,
                      String password)
Method Detail

Call

public String Call(String url_method)
            throws Exception
Throws:
Exception

Call

public String Call(String url_method,
                   Map<String,Object> get_parameters)
            throws Exception
Throws:
Exception

Call

public String Call(String url_method,
                   ArrayList<Object> fixed_parameters,
                   Map<String,Object> get_parameters)
            throws Exception
Throws:
Exception

CallAsStream

public InputStream CallAsStream(String url_method,
                                Map<String,Object> get_parameters)
                         throws Exception
Throws:
Exception

CallAsStream

public InputStream CallAsStream(String url_method)
                         throws Exception
Throws:
Exception

CallAsStream

public InputStream CallAsStream(String url_method,
                                ArrayList<Object> fixed_parameters,
                                Map<String,Object> get_parameters)
                         throws Exception
Throws:
Exception

releaseConnectionStream

public void releaseConnectionStream()

CallPost

public String CallPost(String url_method,
                       String body,
                       Map<String,Object> Postparameters,
                       String content_type)
                throws Exception
Throws:
Exception

CallPost

public String CallPost(String url_method,
                       String body,
                       String content_type)
                throws Exception
Throws:
Exception

CallPost

public String CallPost(String url_method,
                       Map<String,Object> Postparameters,
                       String content_type)
                throws Exception
Throws:
Exception

CallPut

public String CallPut(String url_method,
                      String body,
                      String content_type)
               throws Exception
Throws:
Exception

CallStreaming

public InputStream CallStreaming(String url_method,
                                 ArrayList<Object> fixed_parameters,
                                 Map<String,Object> get_parameters)
                          throws Exception
Throws:
Exception

setTimeOut

public void setTimeOut(int timeout)

CallDelete

public Boolean CallDelete(String url_method)
                   throws Exception
Throws:
Exception

CallDelete

public Boolean CallDelete(String url_method,
                          Map<String,Object> parameters)
                   throws Exception
Throws:
Exception

getUrlservice

public String getUrlservice()
Returns:

setUrlservice

public void setUrlservice(String urlservice)
Parameters:
urlservice -

isAvailableFeatureType

public boolean isAvailableFeatureType(String featureTypeUrl,
                                      int trySleepTimeSc,
                                      int maxTry)
Parameters:
featureTypeUrl -
trySleepTimeSc - - time in seconds
maxTry -
Returns:


Copyright © 2012. All Rights Reserved.