org.deegree_impl.services.wms.capabilities
Class DataSource_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wms.capabilities.DataSource_Impl
All Implemented Interfaces:
DataSource, Marshallable

public class DataSource_Impl
extends java.lang.Object
implements DataSource, Marshallable

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: 1.11 $
Author:
Andreas Poth, Markus Schneider

Field Summary
private  java.net.URL capabilitiesURL
           
private  java.lang.String geometryProperty
           
private  WCSGetCoverageRequest getCoverage
           
private  WMSGetMapRequest getMap
           
private  java.lang.String name
           
private  OGCWebService ows
           
private  WFSQuery query
           
private  ScaleHint scaleHint
           
private  int type
           
 
Fields inherited from interface org.deegree.services.wms.capabilities.DataSource
LOCALWCS, LOCALWFS, REMOTEWCS, REMOTEWFS, REMOTEWMS
 
Constructor Summary
private DataSource_Impl(java.lang.String name, int type, java.lang.String geometryProperty, OGCWebService ows, java.net.URL capabilitiesURL, ScaleHint scaleHint)
          Creates a new DataSource_Impl object.
(package private) DataSource_Impl(java.lang.String name, int type, java.lang.String geometryProperty, OGCWebService ows, java.net.URL capabilitiesURL, ScaleHint scaleHint, WCSGetCoverageRequest getCoverage)
          Creates a new DataSource_Impl object.
(package private) DataSource_Impl(java.lang.String name, int type, java.lang.String geometryProperty, OGCWebService ows, java.net.URL capabilitiesURL, ScaleHint scaleHint, WFSQuery query)
          Creates a new DataSource_Impl object.
(package private) DataSource_Impl(java.lang.String name, java.lang.String geometryProperty, OGCWebService ows, java.net.URL capabilitiesURL, ScaleHint scaleHint, WMSGetMapRequest getMap)
          Creates a new DataSource_Impl object.
 
Method Summary
 java.lang.String exportAsXML()
          Returns an XML representation of this object.
 java.lang.String getGeometryProperty()
          Returns the name of the geometry property in case the datasource is of type LOCALWFS / REMOTEWFS.
 WCSGetCoverageRequest getGetCoverageRequest()
          returns an instance of a WCSGetCoverageRequest encapsulating the filter conditions against a remote WCS.
 WMSGetMapRequest getGetMapRequest()
          returns an instance of a WMSGetMapRequest encapsulating the filter conditions against a remote WMS.
 java.lang.String getName()
          returns the name of the data source.
 OGCWebService getOGCWebService()
          returns an instance of the OGCWebService that represents the datasource.
 WFSQuery getQuery()
          returns the WFS Query that describes the access/filtering to the data source.
 ScaleHint getScaleHint()
          returns the scale interval the data source is valid
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ows

private OGCWebService ows

capabilitiesURL

private java.net.URL capabilitiesURL

scaleHint

private ScaleHint scaleHint

geometryProperty

private java.lang.String geometryProperty

name

private java.lang.String name

getCoverage

private WCSGetCoverageRequest getCoverage

query

private WFSQuery query

getMap

private WMSGetMapRequest getMap

type

private int type
Constructor Detail

DataSource_Impl

private DataSource_Impl(java.lang.String name,
                        int type,
                        java.lang.String geometryProperty,
                        OGCWebService ows,
                        java.net.URL capabilitiesURL,
                        ScaleHint scaleHint)
Creates a new DataSource_Impl object.

Parameters:
name -
type -
ows -
scaleHint -

DataSource_Impl

DataSource_Impl(java.lang.String name,
                int type,
                java.lang.String geometryProperty,
                OGCWebService ows,
                java.net.URL capabilitiesURL,
                ScaleHint scaleHint,
                WFSQuery query)
Creates a new DataSource_Impl object.

Parameters:
name - name of the featuretype to access
type - type of the data source (LOCALWFS, REMOTEWFS)
ows - OGCWebService instance for accessing the data source
scaleHint -
query - filter condition

DataSource_Impl

DataSource_Impl(java.lang.String name,
                java.lang.String geometryProperty,
                OGCWebService ows,
                java.net.URL capabilitiesURL,
                ScaleHint scaleHint,
                WMSGetMapRequest getMap)
Creates a new DataSource_Impl object. Because only a REMOTEWMS can handle a WMSGetMapRequest no type must be submitted.

Parameters:
name - name of the featuretype to access
ows - OGCWebService instance for accessing the data source
scaleHint -
getMap - filter condition

DataSource_Impl

DataSource_Impl(java.lang.String name,
                int type,
                java.lang.String geometryProperty,
                OGCWebService ows,
                java.net.URL capabilitiesURL,
                ScaleHint scaleHint,
                WCSGetCoverageRequest getCoverage)
Creates a new DataSource_Impl object.

Parameters:
name - name of the featuretype to access
type - type of the data source (REMOTEWCS, LOCALWCS)
ows - OGCWebService instance for accessing the data source
scaleHint -
getCoverage - filter condition
Method Detail

getScaleHint

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

Specified by:
getScaleHint in interface DataSource

getName

public java.lang.String 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.

Specified by:
getName in interface DataSource

getOGCWebService

public OGCWebService getOGCWebService()
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

Specified by:
getOGCWebService in interface DataSource

getQuery

public WFSQuery getQuery()
returns the WFS Query that describes the access/filtering to the data source.

Specified by:
getQuery in interface DataSource

getGetCoverageRequest

public WCSGetCoverageRequest getGetCoverageRequest()
returns an instance of a WCSGetCoverageRequest encapsulating the filter conditions against a remote WCS. The request object contains: VERSION, LAYER, FORMAT, VENDORSPECIFICPARAMETERS

Specified by:
getGetCoverageRequest in interface DataSource
Returns:
filter conditions

getGetMapRequest

public WMSGetMapRequest getGetMapRequest()
returns an instance of a WMSGetMapRequest encapsulating the filter conditions against a remote WMS. The request object contains: WMTVER, LAYERS, STYLES, FORMAT, TRANSPARENT, VENDORSPECIFICPARAMETERS

Specified by:
getGetMapRequest in interface DataSource
Returns:
filter conditions

getType

public int getType()
returns the type of the data source. possible values are: the values are defined as constants in DataSource

Specified by:
getType in interface DataSource
Returns:

getGeometryProperty

public java.lang.String getGeometryProperty()
Returns the name of the geometry property in case the datasource is of type LOCALWFS / REMOTEWFS.

Specified by:
getGeometryProperty in interface DataSource
Returns:
name of the geometry property

toString

public java.lang.String toString()
Returns:

exportAsXML

public java.lang.String exportAsXML()
Returns an XML representation of this object.

Specified by:
exportAsXML in interface Marshallable
Returns:
XML-representation of this object