public class Capabilities extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,HashMap<String,String>> |
capabilities |
private List<String> |
imageryBlacklist |
Constructor and Description |
---|
Capabilities()
Constructs new
Capabilities . |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
String |
get(String element,
String attribute) |
Double |
getDouble(String element,
String attribute)
returns the value of configuration item in the capabilities as
double value
|
List<String> |
getImageryBlacklist()
returns the full list of blacklist regular expressions.
|
Long |
getLong(String element,
String attribute) |
int |
getMaxChangesetSize()
Returns the max number of objects in a changeset. -1 if either the capabilities
don't include this parameter or if the parameter value is illegal (not a number,
a negative number)
|
boolean |
isDefined(String element,
String attribute) |
boolean |
isOnImageryBlacklist(String url)
checks if the given URL is blacklisted by one of the of the
regular expressions.
|
void |
put(String element,
String attribute,
String value) |
boolean |
supportsVersion(String version) |
private List<String> imageryBlacklist
public Capabilities()
Capabilities
.public Double getDouble(String element, String attribute) throws NumberFormatException
element
- the name of the elementattribute
- the name of the attributeNumberFormatException
- if the value is not a valid doublepublic void clear()
public boolean supportsVersion(String version)
public int getMaxChangesetSize()
public boolean isOnImageryBlacklist(String url)
public List<String> getImageryBlacklist()