org.deegree.services.wfs
Class WFService

java.lang.Object
  extended by org.deegree.services.wfs.WFService

public class WFService
extends java.lang.Object

Manages the FeatureStore instances for the WFSController.

Version:
$Revision: $, $Date: $
Author:
Markus Schneider, last edited by: $Author: schneider $
See Also:
WFSController

Constructor Summary
WFService()
           
 
Method Summary
 void addStore(org.deegree.feature.persistence.FeatureStore fs)
          Registers a new FeatureStore to the WFS.
 javax.xml.namespace.QName[] getFeatureTypeNames()
          Returns the qualified names of all served FeatureTypes.
 java.util.Collection<org.deegree.feature.types.FeatureType> getFeatureTypes()
          Returns all FeatureTypes.
 java.util.Map<java.lang.String,java.lang.String> getPrefixToNs()
          Get the prefix-to-namespace map that is constructed from the NamespaceHints in the configuration
 org.deegree.feature.persistence.FeatureStore getStore(javax.xml.namespace.QName ftName)
          Returns the FeatureStore instance which is responsible for the specified feature type.
 org.deegree.feature.persistence.FeatureStore[] getStores()
          Returns all registered FeatureStore instances.
 java.util.Map<java.lang.String,java.lang.String> getTargetNsToPrefix()
          Get the namespace-to-prefix bindings for the namespaces of the application schemas.
 void init(DeegreeWFS sc, java.lang.String baseURL)
           
 org.deegree.feature.types.FeatureType lookupFeatureType(javax.xml.namespace.QName ftName)
          Looks up the FeatureType with the given qualified name (in a namespace-tolerant manner).
 void removeStore(org.deegree.feature.persistence.FeatureStore fs)
          Deregisters the specified FeatureStore from the WFS.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFService

public WFService()
Method Detail

init

public void init(DeegreeWFS sc,
                 java.lang.String baseURL)
          throws org.deegree.feature.persistence.FeatureStoreException
Parameters:
sc -
baseURL -
Throws:
org.deegree.feature.persistence.FeatureStoreException

getFeatureTypeNames

public javax.xml.namespace.QName[] getFeatureTypeNames()
Returns the qualified names of all served FeatureTypes.

Returns:
the qualified names, never null

getFeatureTypes

public java.util.Collection<org.deegree.feature.types.FeatureType> getFeatureTypes()
Returns all FeatureTypes.

Returns:
served feature types, may be empty, but never null

lookupFeatureType

public org.deegree.feature.types.FeatureType lookupFeatureType(javax.xml.namespace.QName ftName)
Looks up the FeatureType with the given qualified name (in a namespace-tolerant manner).

This method is tolerant to improve interoperability with clients (especially WFS 1.0.0) that only provide the local name or the prefixed name without a namespace binding.

Parameters:
ftName - feature type to look up, must not be null
Returns:
feature type with the given name, or null if no such feature type is served

getStore

public org.deegree.feature.persistence.FeatureStore getStore(javax.xml.namespace.QName ftName)
Returns the FeatureStore instance which is responsible for the specified feature type.

Parameters:
ftName - name of the FeatureType
Returns:
the responsible FeatureStore or null if no such store exists, i.e. the specified feature type is not served

getPrefixToNs

public java.util.Map<java.lang.String,java.lang.String> getPrefixToNs()
Get the prefix-to-namespace map that is constructed from the NamespaceHints in the configuration

Returns:
the prefix-to-namespace map

getTargetNsToPrefix

public java.util.Map<java.lang.String,java.lang.String> getTargetNsToPrefix()
Get the namespace-to-prefix bindings for the namespaces of the application schemas.

Returns:
the namespace-to-prefix map

getStores

public org.deegree.feature.persistence.FeatureStore[] getStores()
Returns all registered FeatureStore instances.

Returns:
all registered feature stores

addStore

public void addStore(org.deegree.feature.persistence.FeatureStore fs)
Registers a new FeatureStore to the WFS.

Parameters:
fs - store to be registered

removeStore

public void removeStore(org.deegree.feature.persistence.FeatureStore fs)
Deregisters the specified FeatureStore from the WFS.

Parameters:
fs - store to be registered


Copyright © 2011. All Rights Reserved.