ArcGIS Server Geoportal extension
10

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

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

public class UpdateHandler
extends InsertHandler

Handles an in-bound CSW 2.0.2 UpdateRecords request.


Constructor Summary
UpdateHandler(RequestContext requestContext)
          Constructs with an associated request context.
 
Method Summary
protected  PublicationResponse handleUpdateRecords(Document dom, Node root, XPath xpath)
          Parses a UpdateRecords request and returns response.
protected  PublicationResponse writeSummaryResponse(int count)
          Writes Transaction Summary response
 
Methods inherited from class com.esri.gpt.control.csw.inbound202.InsertHandler
handleInsertRecords
 
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

UpdateHandler

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

Parameters:
requestContext - the request context
Method Detail

handleUpdateRecords

protected PublicationResponse handleUpdateRecords(Document dom,
                                                  Node root,
                                                  XPath xpath)
                                           throws PublicationException,
                                                  XPathExpressionException
Parses a UpdateRecords request and returns response.

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

writeSummaryResponse

protected PublicationResponse writeSummaryResponse(int count)
Writes Transaction Summary response

Overrides:
writeSummaryResponse in class InsertHandler
Parameters:
count - the updated 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.