public class WMSServerExplorer extends AbstractDataServerExplorer implements RasterDataServerExplorer, DataServerExplorerProvider
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
LOGGERTIMEFILESYSTEM_SERVER_EXPLORER_NAME, MODE_ALL, MODE_FEATURE, MODE_GEOMETRY, MODE_RASTER| Constructor and Description |
|---|
WMSServerExplorer(WMSServerExplorerParameters parameters,
DataServerExplorerProviderServices services) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.lang.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(java.lang.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.
|
DataStoreParameters |
get(java.lang.String layerName) |
java.lang.String |
getAbstract()
Gets the description of this service
|
NewDataStoreParameters |
getAddParameters(java.lang.String storeName)
Given the store's name, returns its parameters for creation.
|
java.awt.geom.Rectangle2D |
getBoundingBox(java.lang.String[] layerNames,
java.lang.String srs) |
java.lang.String |
getDataStoreProviderName()
Gets the provider's name
|
java.util.List<java.lang.String> |
getDataStoreProviderNames()
Return the list of provider names that this server allow.
|
java.lang.String |
getDescription() |
java.lang.String[] |
getFormats()
Gets the list of raster formats supported by the server
|
java.lang.String |
getHost()
Gets the host URI
|
java.lang.String[] |
getInfoFormats()
Gets the list of raster information formats supported by the server
|
WMSLayerNode |
getLayer(java.lang.String layerName)
Gets a layer using its name
|
java.awt.geom.Rectangle2D |
getLayersExtent(java.lang.String[] layerName,
java.lang.String srs) |
WMSLayerNode |
getLayerTree()
Gets a tree of nodes which represents the server information
|
java.util.Hashtable |
getOnlineResources()
Gets the online resources
|
WMSServerExplorerParameters |
getParameters()
Returns this DataServerExplorer parameters
|
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getProviderName()
Returns the DataServerExplorer's name
|
DataServerExplorerProviderServices |
getServerExplorerProviderServices() |
java.lang.String |
getServerType()
Gets the server title
|
java.lang.String |
getServiceTitle() |
DataStoreParameters |
getStoredParameters()
Returns the internal parameters, that is, the parameters that
are not tiled.
|
java.lang.String |
getTitle()
Gets the title
|
java.lang.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() |
java.util.List<DataStoreParameters> |
list()
Provides a list of available stores in the server.
|
java.util.List<DataStoreParameters> |
list(int mode)
Provides a list of available stores in the server of a type.
|
void |
open()
Open connection to the server
|
DataStore |
open(DataStoreParameters par)
Open a store defined by
dsp |
void |
remove(DataStoreParameters parameters)
Removes a store from the server given its DataStoreParameters.
|
close, createSQLBuilder, doDispose, exists, getProperties, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStorage, setPropertydispose, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexists, getResourcePath, getResourcesStorage, getResourcesStorage, getResourcesStoragedisposepublic WMSServerExplorer(WMSServerExplorerParameters parameters, DataServerExplorerProviderServices services) throws InitializeException
InitializeExceptionpublic java.lang.String getDataStoreProviderName()
public java.lang.String getDescription()
public boolean add(java.lang.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(java.lang.String storeName)
throws DataException
DataServerExplorercanAdd in interface DataServerExplorerstoreName - store name.DataExceptionpublic NewDataStoreParameters getAddParameters(java.lang.String storeName) throws DataException
DataServerExplorergetAddParameters in interface DataServerExplorerDataExceptionpublic java.util.List<java.lang.String> getDataStoreProviderNames()
DataServerExplorergetDataStoreProviderNames in interface DataServerExplorerpublic WMSServerExplorerParameters getParameters()
DataServerExplorergetParameters in interface DataServerExplorergetParameters in class AbstractDataServerExplorerpublic java.util.List<DataStoreParameters> list() throws DataException
DataServerExplorerlist in interface DataServerExplorerDataExceptionpublic java.util.List<DataStoreParameters> 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 java.lang.String getProviderName()
DataServerExplorergetProviderName in interface DataServerExplorerpublic DataStoreParameters get(java.lang.String layerName)
get in interface DataServerExplorerget in class AbstractDataServerExplorerpublic DataStoreParameters getStoredParameters()
RasterDataServerExplorergetStoredParameters in interface RasterDataServerExplorerpublic void open()
throws OpenException
DataServerExplorer_v2open in interface DataServerExplorer_v2open in class AbstractDataServerExplorerOpenExceptionpublic 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 java.lang.String getAbstract()
public java.lang.String[] getFormats()
public java.lang.String[] getInfoFormats()
public WMSLayerNode getLayerTree()
public java.lang.String getServerType()
public java.util.Hashtable getOnlineResources()
public java.lang.String getVersion()
public java.awt.geom.Rectangle2D getLayersExtent(java.lang.String[] layerName,
java.lang.String srs)
public WMSLayerNode getLayer(java.lang.String layerName)
layerName - public java.lang.String getHost()
public java.awt.geom.Rectangle2D getBoundingBox(java.lang.String[] layerNames,
java.lang.String srs)
public boolean isQueryable()
public java.lang.String getTitle()
public java.lang.String getServiceTitle()
public DataServerExplorerProviderServices getServerExplorerProviderServices()
getServerExplorerProviderServices in interface DataServerExplorerProvidergetServerExplorerProviderServices in class AbstractDataServerExplorerpublic DataStore open(DataStoreParameters par) throws DataException
DataServerExplorer_v2dspopen in interface DataServerExplorer_v2open in class AbstractDataServerExplorerDataExceptionpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface PropertiesSupportgetProperty in class AbstractDataServerExplorer