org.deegree_impl.services.wfs.capabilities
Class WFSCapabilitiesFactory

java.lang.Object
  extended byorg.deegree_impl.services.wfs.capabilities.WFSCapabilitiesFactory

public final class WFSCapabilitiesFactory
extends java.lang.Object

Factory class for creating WFS capability classes from a WFS capabilities XML document that's conform to OGC WFS specification.

----------------------------------------------------------------------

Version:
2002-04-16
Author:
Andreas Poth

Constructor Summary
WFSCapabilitiesFactory()
           
 
Method Summary
private static GM_Envelope createBoundingBox(org.w3c.dom.Element element)
          creates a bounding box from a string containing a comma seperated list of corner coorinates (minx, miny, maxx, maxy)
static WFSCapabilities createCapabilities(org.w3c.dom.Document doc)
          factory method for creating a WFSCapabilities object from a OGC WFS 1.0 conform XML capabilities document
static WFSCapabilities createCapabilities(java.io.Reader reader)
          factory method for creating a WFSCapabilities object from a file that contains a OGC WFS 1.0 conform XML capabilities document
static WFSCapabilities createCapabilities(java.net.URL url)
          factory method for creating a WFSCapabilities object from a file that contains a OGC WFS 1.0 conform XML capabilities document
static FeatureType createFeatureType(java.lang.String name, java.lang.String title, java.lang.String abstract_, java.lang.String srs, GM_Envelope latLonBoundingBox, FeatureTypeList parentList, java.lang.String[] keywords, Operation[] operations, MetadataURL[] metadataURL, java.lang.String responsibleClassName, java.net.URL configURL)
          creates a FeatureType object
private static Capability getCapability(org.w3c.dom.Element capElement)
          returns an instance of an object that capsulates the service element of the WMS capabilities.
private static DCPType[] getDCPType(org.w3c.dom.NodeList nl)
          creates list of DCPTypes
private static DescribeFeatureType getDescribeFeatureType(org.w3c.dom.Element element)
          returns an instance of an DescribeFeatureType object generated from the submitted dom element
private static FeatureTypeList getFeatureTypeList(org.w3c.dom.Element element)
          returns an instance of an object that capsulates the WFS's feature type list.
private static FeatureType[] getFeatureTypes(org.w3c.dom.NodeList nl, Operation[] operations_, java.lang.String className, java.net.URL configURL)
          returns an list of feature types that are contained within the FeatureTypeList element of the capabilities.
private static GetFeature getGetFeature(org.w3c.dom.Element element)
          returns an instance of an GetFeature object generated from the submitted dom element
private static GetFeatureWithLock getGetFeatureWithLock(org.w3c.dom.Element element)
          returns an instance of an GetFeatureWithLock object generated from the submitted dom element
private static java.lang.String[] getKeywords(org.w3c.dom.Element keywordsElement)
          returns the keywords associated with the service
private static MetadataURL[] getMetadataURL(org.w3c.dom.NodeList nl)
          returns a feature types MetadataURL
private static Operation[] getOperations(org.w3c.dom.Element element)
          returns an list of operations
private static Request getRequest(org.w3c.dom.Element requestElement)
          returns an instance of an object that capsulates the request element of the WMS capabilities/capability.
private static Service getService(org.w3c.dom.Element serviceElement)
          returns an instance of an object that capsulates the service element of the WFS capabilities.
private static org.w3c.dom.Document getVendorSpecificCapabilities(org.w3c.dom.Element vendorElement)
          returns an instance of an object that capsulates the vendor specific capabilities element of the WMS capabilities/capability.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFSCapabilitiesFactory

public WFSCapabilitiesFactory()
Method Detail

createCapabilities

public static WFSCapabilities createCapabilities(java.net.URL url)
                                          throws java.io.IOException,
                                                 org.xml.sax.SAXException,
                                                 java.lang.Exception
factory method for creating a WFSCapabilities object from a file that contains a OGC WFS 1.0 conform XML capabilities document

Throws:
java.io.IOException
org.xml.sax.SAXException
java.lang.Exception

createCapabilities

public static WFSCapabilities createCapabilities(java.io.Reader reader)
                                          throws java.io.IOException,
                                                 org.xml.sax.SAXException,
                                                 java.lang.Exception
factory method for creating a WFSCapabilities object from a file that contains a OGC WFS 1.0 conform XML capabilities document

Throws:
java.io.IOException
org.xml.sax.SAXException
java.lang.Exception

createCapabilities

public static WFSCapabilities createCapabilities(org.w3c.dom.Document doc)
                                          throws java.lang.Exception
factory method for creating a WFSCapabilities object from a OGC WFS 1.0 conform XML capabilities document

Throws:
java.lang.Exception

getService

private static Service getService(org.w3c.dom.Element serviceElement)
returns an instance of an object that capsulates the service element of the WFS capabilities.


getKeywords

private static java.lang.String[] getKeywords(org.w3c.dom.Element keywordsElement)
returns the keywords associated with the service


getCapability

private static Capability getCapability(org.w3c.dom.Element capElement)
returns an instance of an object that capsulates the service element of the WMS capabilities.


getRequest

private static Request getRequest(org.w3c.dom.Element requestElement)
returns an instance of an object that capsulates the request element of the WMS capabilities/capability.


getDCPType

private static DCPType[] getDCPType(org.w3c.dom.NodeList nl)
creates list of DCPTypes


getDescribeFeatureType

private static DescribeFeatureType getDescribeFeatureType(org.w3c.dom.Element element)
returns an instance of an DescribeFeatureType object generated from the submitted dom element


getGetFeature

private static GetFeature getGetFeature(org.w3c.dom.Element element)
returns an instance of an GetFeature object generated from the submitted dom element


getGetFeatureWithLock

private static GetFeatureWithLock getGetFeatureWithLock(org.w3c.dom.Element element)
returns an instance of an GetFeatureWithLock object generated from the submitted dom element


getVendorSpecificCapabilities

private static org.w3c.dom.Document getVendorSpecificCapabilities(org.w3c.dom.Element vendorElement)
returns an instance of an object that capsulates the vendor specific capabilities element of the WMS capabilities/capability.


createBoundingBox

private static GM_Envelope createBoundingBox(org.w3c.dom.Element element)
creates a bounding box from a string containing a comma seperated list of corner coorinates (minx, miny, maxx, maxy)


getFeatureTypeList

private static FeatureTypeList getFeatureTypeList(org.w3c.dom.Element element)
                                           throws java.lang.Exception
returns an instance of an object that capsulates the WFS's feature type list.

Throws:
java.lang.Exception

getOperations

private static Operation[] getOperations(org.w3c.dom.Element element)
                                  throws java.net.MalformedURLException
returns an list of operations

Throws:
java.net.MalformedURLException

getFeatureTypes

private static FeatureType[] getFeatureTypes(org.w3c.dom.NodeList nl,
                                             Operation[] operations_,
                                             java.lang.String className,
                                             java.net.URL configURL)
                                      throws java.lang.Exception
returns an list of feature types that are contained within the FeatureTypeList element of the capabilities.

Throws:
java.lang.Exception

createFeatureType

public static FeatureType createFeatureType(java.lang.String name,
                                            java.lang.String title,
                                            java.lang.String abstract_,
                                            java.lang.String srs,
                                            GM_Envelope latLonBoundingBox,
                                            FeatureTypeList parentList,
                                            java.lang.String[] keywords,
                                            Operation[] operations,
                                            MetadataURL[] metadataURL,
                                            java.lang.String responsibleClassName,
                                            java.net.URL configURL)
creates a FeatureType object


getMetadataURL

private static MetadataURL[] getMetadataURL(org.w3c.dom.NodeList nl)
returns a feature types MetadataURL


main

public static void main(java.lang.String[] args)