deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.ogcwebservices.wms.configuration
Class AbstractDataSource

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

public abstract class AbstractDataSource
extends 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: 9345 $, $Date: 2007-12-27 17:22:25 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth , Markus Schneider

Field Summary
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, URL capabilitiesURL, ScaleHint scaleHint, Geometry validArea, URL featureInfoTransform, int reqTimeLimit)
          Creates a new DataSource object.
 
Method Summary
 URL getCapabilitiesURL()
           
 URL getFeatureInfoTransform()
           
 QualifiedName getName()
           
abstract  OGCWebService getOGCWebService()
           
 int getRequestTimeLimit()
           
 ScaleHint getScaleHint()
           
 int getType()
           
 Geometry getValidArea()
           
 boolean isFailOnException()
           
 boolean isQueryable()
           
 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

ows

protected OGCWebService ows
Constructor Detail

AbstractDataSource

protected AbstractDataSource(boolean queryable,
                             boolean failOnException,
                             QualifiedName name,
                             int type,
                             OGCWebService ows,
                             URL capabilitiesURL,
                             ScaleHint scaleHint,
                             Geometry validArea,
                             URL featureInfoTransform,
                             int reqTimeLimit)
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 URL getCapabilitiesURL()
Returns:
the URL of the capabilities document describing access to a datasource

getFeatureInfoTransform

public 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.

toString

public String toString()
Overrides:
toString in class Object

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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