org.deegree.protocol.ows
Class OWS110CapabilitiesAdapter

java.lang.Object
  extended by org.deegree.commons.xml.XMLAdapter
      extended by org.deegree.protocol.ows.OWS110CapabilitiesAdapter
Direct Known Subclasses:
WPS100CapabilitiesAdapter

public class OWS110CapabilitiesAdapter
extends XMLAdapter

Extracts metadata from OGC service capabilities documents that comply to the OWS 1.1.0 specification.

Version:
$Revision: 27167 $, $Date: 2010-10-04 14:20:03 +0200 (Mo, 04. Okt 2010) $
Author:
Markus Schneider, Markus Schneider, last edited by: $Author: lbuesching $

Field Summary
 
Fields inherited from class org.deegree.commons.xml.XMLAdapter
DEFAULT_URL, rootElement, XLN_NS
 
Constructor Summary
OWS110CapabilitiesAdapter()
          Creates a new OWS110CapabilitiesAdapter instance.
 
Method Summary
 java.net.URL getOperationURL(java.lang.String operation, boolean post)
          Returns the URL for the specified operation and HTTP method.
 ServiceMetadata parseMetadata()
           
 
Methods inherited from class org.deegree.commons.xml.XMLAdapter
evaluateXPath, getElement, getElements, getNamespaceContext, getNode, getNodeAsBoolean, getNodeAsDouble, getNodeAsFloat, getNodeAsInt, getNodeAsQName, getNodeAsString, getNodeAsURL, getNodeAsVersion, getNodes, getNodesAsQNames, getNodesAsStrings, getRequiredElement, getRequiredElements, getRequiredNode, getRequiredNodeAsBoolean, getRequiredNodeAsDouble, getRequiredNodeAsFloat, getRequiredNodeAsInteger, getRequiredNodeAsQName, getRequiredNodeAsString, getRequiredNodeAsURL, getRequiredNodeAsVersion, getRequiredNodes, getRootElement, getSchemas, getSystemId, hasSchemas, load, load, load, load, load, load, maybeWriteElement, maybeWriteElementNS, parseBoolean, parseDouble, parseFloat, parseInt, parseQName, parseSimpleLink, parseURL, resolve, setRootElement, setSystemId, toString, writeElement, writeElement, writeElement, writeElement, writeElement, writeOptionalAttribute, writeOptionalElement, writeOptionalNSAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OWS110CapabilitiesAdapter

public OWS110CapabilitiesAdapter()
Creates a new OWS110CapabilitiesAdapter instance.

Method Detail

parseMetadata

public ServiceMetadata parseMetadata()
Returns:
a ServiceMetadata instance, never null

getOperationURL

public java.net.URL getOperationURL(java.lang.String operation,
                                    boolean post)
                             throws java.net.MalformedURLException
Returns the URL for the specified operation and HTTP method.

Parameters:
operation - name of the operation, must not be null
post - if set to true, the URL for POST requests will be returned, otherwise the URL for GET requests will be returned
Returns:
the operation URL (trailing question marks are stripped), can be null (if the operation/method is not announced by the service)
Throws:
java.net.MalformedURLException - if the announced URL is malformed


Copyright © 2011. All Rights Reserved.