ArcGIS Server Geoportal extension
10

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

java.lang.Object
  extended by com.esri.gpt.control.csw.inbound202.PublicationHandler
      extended by com.esri.gpt.control.csw.inbound202.DeleteHandler

public class DeleteHandler
extends PublicationHandler

Handles an in-bound CSW 2.0.2 DeleteRecords request.


Constructor Summary
DeleteHandler(RequestContext requestContext)
          Constructs with an associated request context.
 
Method Summary
protected  PublicationResponse handleDeleteRecords(Document dom, Node root, XPath xpath)
          Parses a DeleteRecords request and builds a an executable Query.
protected  PublicationResponse writeSummaryResponse(int count)
          Writes Transaction Summary response
 
Methods inherited from class com.esri.gpt.control.csw.inbound202.PublicationHandler
findDiscoverable, getCswResponse, getQueryables, getRequestContext, getRequestParameter, getRetrievalOptions, getService, getVersion, parsePropertyName, setCswResponse, setService, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteHandler

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

Parameters:
requestContext - the request context
Method Detail

handleDeleteRecords

protected PublicationResponse handleDeleteRecords(Document dom,
                                                  Node root,
                                                  XPath xpath)
                                           throws PublicationException,
                                                  XPathExpressionException
Parses a DeleteRecords request and builds a an executable Query.

Parameters:
dom - the XML document
root - the root node (csw:GetRecords)
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
PublicationException

writeSummaryResponse

protected PublicationResponse writeSummaryResponse(int count)
Writes Transaction Summary response

Parameters:
count - the inserted row count
Returns:
PublicationResponse the publication summary response

ArcGIS Server Geoportal extension
10

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