ArcGIS Server Geoportal extension
10

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

java.lang.Object
  extended by com.esri.gpt.control.csw.inbound202.PublicationHandler
      extended by com.esri.gpt.control.csw.inbound202.InsertHandler
Direct Known Subclasses:
UpdateHandler

public class InsertHandler
extends PublicationHandler

Handles an in-bound CSW 2.0.2 InsertRecords request.


Constructor Summary
InsertHandler(RequestContext requestContext)
          Constructs with an associated request context.
 
Method Summary
protected  PublicationResponse handleInsertRecords(Document dom, Node root, XPath xpath)
          Parses a InsertRecords request and returns response.
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

InsertHandler

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

Parameters:
requestContext - the request context
Method Detail

handleInsertRecords

protected PublicationResponse handleInsertRecords(Document dom,
                                                  Node root,
                                                  XPath xpath)
                                           throws PublicationException,
                                                  XPathExpressionException
Parses a InsertRecords 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

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.