public abstract class QueryLayers
extends java.lang.Object
Class to query a web map server's GetCapabilities function and provide metadata about the layers it serves.
To use this class, first instantiate a new object, then call process(). If process() returns successfully, then metadata about the layers and the server itself may be queried using getLayers(), getServerName(), etc.
Modifier and Type | Class and Description |
---|---|
static class |
QueryLayers.Style
Class to encapsulate a layer style.
|
Modifier and Type | Field and Description |
---|---|
protected java.net.URL |
baseURL |
protected java.lang.String |
getMapURL |
protected boolean |
isProcessed |
protected java.util.List<WebMapLayer> |
layers |
protected java.util.Set<java.lang.String> |
mimeTypes |
protected java.lang.String |
serviceTitle |
Constructor and Description |
---|
QueryLayers() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getBaseURL()
Return the URL that this object was created with.
|
java.lang.String |
getGetMapURL()
Return the URL string that should be used for this map server's GetMap calls.
|
java.util.List<WebMapLayer> |
getLayers()
Return the list of layers provided by this map server.
|
java.util.Set<java.lang.String> |
getMimeTypes()
Return the list of map imagery formats this map server provides, in mime-type form (e.g.
|
java.lang.String |
getServiceTitle()
Return the human-readable title of this map server.
|
boolean |
isProcessed()
Returns true if process() has been called successfully.
|
abstract void |
process()
Actually perform the query of the map server.
|
protected java.lang.String serviceTitle
protected java.util.List<WebMapLayer> layers
protected java.util.Set<java.lang.String> mimeTypes
protected java.lang.String getMapURL
protected java.net.URL baseURL
protected boolean isProcessed
public java.net.URL getBaseURL()
public java.util.List<WebMapLayer> getLayers()
public java.lang.String getServiceTitle()
public java.util.Set<java.lang.String> getMimeTypes()
public java.lang.String getGetMapURL()
public boolean isProcessed()
public abstract void process() throws java.io.IOException
java.io.IOException
- in case of error.