org.gcube.common.geoserverinterface
Class HttpResourceControl

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

public class HttpResourceControl
extends Object


Constructor Summary
HttpResourceControl()
           
 
Method Summary
 int failOverResource(ArrayList<String> listResourceUrl, int trySleepTime, int maxTry, String username, String password)
           
 boolean isAvailableNetworkResource(String networkUrl, int trySleepTimeMs, int maxTry, String username, String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResourceControl

public HttpResourceControl()
Method Detail

isAvailableNetworkResource

public boolean isAvailableNetworkResource(String networkUrl,
                                          int trySleepTimeMs,
                                          int maxTry,
                                          String username,
                                          String password)
Parameters:
networkUrl -
trySleepTimeMs - - in milliseconds
maxTry -
username - (optional) - used for Http Authentication
password - (optional) - used for Http Authentication
Returns:

failOverResource

public int failOverResource(ArrayList<String> listResourceUrl,
                            int trySleepTime,
                            int maxTry,
                            String username,
                            String password)


Copyright © 2012. All Rights Reserved.