ArcGIS Server Geoportal extension
10

com.esri.gpt.control.csw.inbound202
Class GetCapabilitiesHandler

java.lang.Object
  extended by com.esri.gpt.control.csw.inbound202.DiscoveryHandler
      extended by com.esri.gpt.control.csw.inbound202.GetCapabilitiesHandler

public class GetCapabilitiesHandler
extends DiscoveryHandler

Handles an in-bound CSW 2.0.2 GetCapabilities request.


Constructor Summary
GetCapabilitiesHandler(RequestContext requestContext)
          Constructs with an associated request context.
 
Method Summary
protected  DiscoveryResponse handleGetCapabilities(Document dom, Node root, XPath xpath)
          Parses a GetCapabilities request, executes the query and builds the response.
protected  DiscoveryResponse handleGetCapabilities(HttpServletRequest request, String service, String version)
          Handles and incoming URL based GetCapabilities request.
 
Methods inherited from class com.esri.gpt.control.csw.inbound202.DiscoveryHandler
executeQuery, findDiscoverable, getCswResponse, getQueryables, getRequestContext, getRequestParameter, getRetrievalOptions, getService, getVersion, parseElementSet, parsePropertyName, setCswResponse, setService, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCapabilitiesHandler

public GetCapabilitiesHandler(RequestContext requestContext)
Constructs with an associated request context.

Parameters:
requestContext - the request context
Method Detail

handleGetCapabilities

protected DiscoveryResponse handleGetCapabilities(Document dom,
                                                  Node root,
                                                  XPath xpath)
                                           throws DiscoveryException,
                                                  XPathExpressionException
Parses a GetCapabilities request, executes the query and builds the response.

Parameters:
dom - the XML document
root - the root node (csw:GetCapabilities)
xpath - an XPath to enable queries (properly configured with name spaces)
Returns:
the discovery response
Throws:
DiscoveryException - if a structural related exception occurs
XPathExpressionException - if an XPath related exception occurs

handleGetCapabilities

protected DiscoveryResponse handleGetCapabilities(HttpServletRequest request,
                                                  String service,
                                                  String version)
                                           throws DiscoveryException
Handles and incoming URL based GetCapabilities request.

Parameters:
request - the HTTP request
service - the service name
version - the service version
Returns:
the discovery response
Throws:
DiscoveryException - if an exception occurs

ArcGIS Server Geoportal extension
10

Copyright 2010 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.