org.gcube.common.geoserverinterface
Class HttpResourceControl
java.lang.Object
org.gcube.common.geoserverinterface.HttpResourceControl
public class HttpResourceControl
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpResourceControl
public HttpResourceControl()
isAvailableNetworkResource
public boolean isAvailableNetworkResource(String networkUrl,
int trySleepTimeMs,
int maxTry,
String username,
String password)
- Parameters:
networkUrl
- trySleepTimeMs
- - in millisecondsmaxTry
- username
- (optional) - used for Http Authenticationpassword
- (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.