public class WMSServerExplorer extends AbstractDataServerExplorer implements RasterDataServerExplorer, DataServerExplorerProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
TIMEMODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
WMSServerExplorer(WMSServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String provider,
NewDataStoreParameters parameters,
boolean overwrite)
Creates a new DataStore in this server.
|
boolean |
canAdd()
Indicates whether this DataServerExplorer can create a new DataStore in the
server.
|
boolean |
canAdd(String storeName)
Indicates whether this DataServerExplorer can create a new DataStore in
the server, given the store name.
|
void |
connect(ICancellable cancellable)
Connect to the server
|
void |
connect(ICancellable cancellable,
boolean updateCache)
Connects to the server and throws a getCapabilities.
|
String |
getAbstract()
Gets the description of this service
|
NewDataStoreParameters |
getAddParameters(String storeName)
Given the store's name, returns its parameters for creation.
|
Rectangle2D |
getBoundingBox(String[] layerNames,
String srs) |
String |
getDataStoreProviderName()
Gets the provider's name
|
List<?> |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
String |
getDescription() |
String[] |
getFormats()
Gets the list of raster formats supported by the server
|
String |
getHost()
Gets the host URI
|
String[] |
getInfoFormats()
Gets the list of raster information formats supported by the server
|
WMSLayerNode |
getLayer(String layerName)
Gets a layer using its name
|
Rectangle2D |
getLayersExtent(String[] layerName,
String srs) |
WMSLayerNode |
getLayerTree()
Gets a tree of nodes which represents the server information
|
Hashtable |
getOnlineResources()
Gets the online resources
|
WMSServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
String |
getServerType()
Gets the server title
|
String |
getServiceTitle() |
DataStoreParameters |
getStoredParameters()
Returns the internal parameters, that is, the parameters that
are not tiled.
|
String |
getTitle()
Gets the title
|
String |
getVersion()
Gets the protocol supported by the server
|
boolean |
isConnected()
Returns true if this provider is connected to the server
|
boolean |
isHostReachable()
Checks if the network and host are reachable
|
boolean |
isHostReachable(int timeout)
Checks if the network and host are reachable
|
boolean |
isQueryable() |
List<?> |
list()
Provides a list of available stores in the server.
|
List<?> |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
doDispose, get, getResourcePathdispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getResourcePathdisposepublic static final String NAME
public WMSServerExplorer(WMSServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeExceptionpublic String getDataStoreProviderName()
public String getDescription()
public boolean add(String provider, NewDataStoreParameters parameters, boolean overwrite) throws DataException
DataServerExploreradd in interface DataServerExplorerparameters - , an instance of DataStoreParameters from
DataServerExplorer.getAddParameters(String) that
describes the new DataStore.overwrite - if the store already existsDataExceptionpublic boolean canAdd()
DataServerExplorercanAdd in interface DataServerExplorerpublic boolean canAdd(String storeName) throws DataException
DataServerExplorercanAdd in interface DataServerExplorerstoreName - store name.DataExceptionpublic NewDataStoreParameters getAddParameters(String storeName) throws DataException
DataServerExplorergetAddParameters in interface DataServerExplorerDataExceptionpublic List<?> getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic WMSServerExplorerParameters getParameters()
DataServerExplorergetParameters in interface DataServerExplorergetParameters in class AbstractDataServerExplorerpublic List<?> list() throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic List<?> list(int mode) throws DataException
DataServerExplorerlist in interface DataServerExplorermode - , filter store from a type: DataServerExplorer.MODE_ALL,
DataServerExplorer.MODE_FEATURE, #MODE_FEATURE_GEOMETRY,
DataServerExplorer.MODE_RASTERDataExceptionpublic void remove(DataStoreParameters parameters) throws DataException
DataServerExplorerremove in interface DataServerExplorerDataExceptionpublic String getProviderName()
DataServerExplorergetProviderName in interface DataServerExplorerpublic DataStoreParameters getStoredParameters()
RasterDataServerExplorergetStoredParameters in interface RasterDataServerExplorerpublic void connect(ICancellable cancellable) throws ConnectException
RasterDataServerExplorerconnect in interface RasterDataServerExplorerConnectExceptionpublic void connect(ICancellable cancellable, boolean updateCache) throws ConnectException
public boolean isHostReachable(int timeout)
isHostReachable in interface RasterDataServerExplorertimeout - for the hostpublic boolean isHostReachable()
isHostReachable in interface RasterDataServerExplorerpublic boolean isConnected()
public String getAbstract()
public String[] getFormats()
public String[] getInfoFormats()
public WMSLayerNode getLayerTree()
public String getServerType()
public Hashtable getOnlineResources()
public String getVersion()
public Rectangle2D getLayersExtent(String[] layerName, String srs)
public WMSLayerNode getLayer(String layerName)
layerName - public String getHost()
public Rectangle2D getBoundingBox(String[] layerNames, String srs)
public boolean isQueryable()
public String getTitle()
public String getServiceTitle()
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices in interface DataServerExplorerProvidergetServerExplorerProviderServices in class AbstractDataServerExplorer