deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.ogcwebservices.wms.configuration
Class AbstractDataSource

java.lang.Object
  extended by org.deegree.ogcwebservices.wms.configuration.AbstractDataSource
Direct Known Subclasses:
DatabaseDataSource, ExternalDataAccessDataSource, LocalWCSDataSource, LocalWFSDataSource, RemoteWMSDataSource

public abstract class AbstractDataSource
extends java.lang.Object

name of the data source where the WMS can find the data of a layer. the filterServiceClassName element identifies the filter servive that's responsible for accessing the data.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth , Markus Schneider

Field Summary
static int DATABASE
          A constant indicating a database
static int EXTERNALDATAACCESS
          A constant indicating an external data access
static int LOCALWCS
          A constant indicating a local wcs.
static int LOCALWFS
          A constant indicating a local wfs.
protected  OGCWebService ows
           
static int REMOTEWCS
          A constant indicating a remote wcs.
static int REMOTEWFS
          A constant indicating a remote wfs.
static int REMOTEWMS
          A constant indicating a remote wms.
 
Constructor Summary
protected AbstractDataSource(boolean queryable, boolean failOnException, QualifiedName name, int type, OGCWebService ows, java.net.URL capabilitiesURL, ScaleHint scaleHint, Geometry validArea, java.net.URL featureInfoTransform, int reqTimeLimit, java.util.Map<java.lang.String,java.lang.String> dimProps)
          Creates a new DataSource object.
 
Method Summary
 java.net.URL getCapabilitiesURL()
           
 java.util.Map<java.lang.String,java.lang.String> getDimProps()
           
 java.net.URL getFeatureInfoTransform()
           
 java.net.URL getFeatureInfoURL()
           
 QualifiedName getName()
           
abstract  OGCWebService getOGCWebService()
           
 int getRequestTimeLimit()
           
 ScaleHint getScaleHint()
           
 int getType()
           
 Geometry getValidArea()
           
 boolean isFailOnException()
           
 boolean isQueryable()
           
 void setFeatureInfoURL(java.net.URL url)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOCALWCS

public static final int LOCALWCS
A constant indicating a local wcs.

See Also:
Constant Field Values

LOCALWFS

public static final int LOCALWFS
A constant indicating a local wfs.

See Also:
Constant Field Values

REMOTEWMS

public static final int REMOTEWMS
A constant indicating a remote wms.

See Also:
Constant Field Values

REMOTEWCS

public static final int REMOTEWCS
A constant indicating a remote wcs.

See Also:
Constant Field Values

REMOTEWFS

public static final int REMOTEWFS
A constant indicating a remote wfs.

See Also:
Constant Field Values

DATABASE

public static final int DATABASE
A constant indicating a database

See Also:
Constant Field Values

EXTERNALDATAACCESS

public static final int EXTERNALDATAACCESS
A constant indicating an external data access

See Also:
Constant Field Values

ows

protected OGCWebService ows
Constructor Detail

AbstractDataSource

protected AbstractDataSource(boolean queryable,
                             boolean failOnException,
                             QualifiedName name,
                             int type,
                             OGCWebService ows,
                             java.net.URL capabilitiesURL,
                             ScaleHint scaleHint,
                             Geometry validArea,
                             java.net.URL featureInfoTransform,
                             int reqTimeLimit,
                             java.util.Map<java.lang.String,java.lang.String> dimProps)
Creates a new DataSource object.

Parameters:
queryable -
failOnException -
name -
type -
ows -
capabilitiesURL -
scaleHint -
featureInfoTransform -
Method Detail

getScaleHint

public ScaleHint getScaleHint()
Returns:
the scale interval the data source is valid

getName

public QualifiedName getName()
Returns:
the name of the data source. The method may returns null if so no name is defined and a online resource or WFS filter have shall be returned.

getOGCWebService

public abstract OGCWebService getOGCWebService()
                                        throws OGCWebServiceException
Returns:
an instance of the OGCWebService that represents the datasource. Notice: if more than one layer uses data that are offered by the same OWS the deegree WMS shall just use one instance for accessing the OWS
Throws:
OGCWebServiceException

getType

public int getType()
Returns:
the type of the data source. possible values are:
  • LOCALWFS
  • LOCALWCS
  • REMOTEWFS
  • REMOTEWCS
  • REMOTEWMS
the values are defined as constants in DataSource

isFailOnException

public boolean isFailOnException()
Returns:
true if the requesting of the complete layer and so of the complete request shall fail if access a datasource fails.

isQueryable

public boolean isQueryable()
Returns:
true i a datasource is queryable (considered for GetFeatureInfo requests)

getCapabilitiesURL

public java.net.URL getCapabilitiesURL()
Returns:
the URL of the capabilities document describing access to a datasource

getFeatureInfoTransform

public java.net.URL getFeatureInfoTransform()
Returns:
the URL of a XSLT script to transform the GML that internaly will be returned as result to a GetFeature or cascaded GetFeatureInfo request. The return is null if no transformation shall be performed.

getValidArea

public Geometry getValidArea()
Returns:
the area a datasource is valid

getRequestTimeLimit

public int getRequestTimeLimit()
Returns:
the maximum time in seconds a datasource shall be able to return a result.

setFeatureInfoURL

public void setFeatureInfoURL(java.net.URL url)
Parameters:
url -

getFeatureInfoURL

public java.net.URL getFeatureInfoURL()
Returns:
the feature info URL or null, if not set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDimProps

public java.util.Map<java.lang.String,java.lang.String> getDimProps()
Returns:
the dimProps

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org