Esri Geoportal Server
1.0

com.esri.gpt.server.csw.provider
Class InsertProvider

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.InsertProvider
All Implemented Interfaces:
IOperationProvider
Direct Known Subclasses:
UpdateProvider

public class InsertProvider
extends Object
implements IOperationProvider

Provides the CSW Transaction/Insert operation.


Constructor Summary
InsertProvider()
          Default constructor
 
Method Summary
 void generateResponse(OperationContext context)
          Generates the response.
 void handleGet(OperationContext context, HttpServletRequest request)
          Handles a URL based request (HTTP GET).
 void handleXML(OperationContext context, Node root, XPath xpath)
          Handles an XML based request (normally HTTP POST).
 void processDocumentNodes(OperationContext context, Publisher publisher, String typeName, String handle, NodeList xmlNodes)
          Processes and publishes the XML document child nodes associated with the parent action.
 void publishDocument(OperationContext context, Publisher publisher, String typeName, String handle, String xml)
          Publishes a document to the catalog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertProvider

public InsertProvider()
Default constructor

Method Detail

generateResponse

public void generateResponse(OperationContext context)
                      throws Exception
Generates the response.

Parameters:
context - the operation context
Throws:
Exception - if a processing exception occurs

handleGet

public void handleGet(OperationContext context,
                      HttpServletRequest request)
               throws Exception
Handles a URL based request (HTTP GET).

Specified by:
handleGet in interface IOperationProvider
Parameters:
context - the operation context
request - the HTTP request
Throws:
Exception - if a processing exception occurs

handleXML

public void handleXML(OperationContext context,
                      Node root,
                      XPath xpath)
               throws Exception
Handles an XML based request (normally HTTP POST).

Specified by:
handleXML in interface IOperationProvider
Parameters:
context - the operation context
root - the root node
xpath - an XPath to enable queries (properly configured with name spaces)
Throws:
Exception - if a processing exception occurs

processDocumentNodes

public void processDocumentNodes(OperationContext context,
                                 Publisher publisher,
                                 String typeName,
                                 String handle,
                                 NodeList xmlNodes)
                          throws Exception
Processes and publishes the XML document child nodes associated with the parent action.

Parameters:
context - the operation context
publisher - the authenticated publisher
typeName - the CSW collection type
handle - a client supplied name (can be echoed within the response)
xmlNodes - a list of child nodes containing XML's to publish
Throws:
Exception - if a processing exception occurs

publishDocument

public void publishDocument(OperationContext context,
                            Publisher publisher,
                            String typeName,
                            String handle,
                            String xml)
                     throws Exception
Publishes a document to the catalog.

Parameters:
context - the operation context
publisher - the authenticated publisher
typeName - the CSW collection type
handle - a client supplied name (can be echoed within the response)
xml - the document XML to publish
Throws:
Exception - if a processing exception occurs

Esri Geoportal Server
1.0

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