Esri Geoportal Server
1.0

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

java.lang.Object
  extended by com.esri.gpt.server.csw.provider.GetRecordByIdProvider
All Implemented Interfaces:
IOperationProvider

public class GetRecordByIdProvider
extends Object
implements IOperationProvider

Provides the CSW GetRecordById operation.


Constructor Summary
GetRecordByIdProvider()
          Default constructor
 
Method Summary
 void execute(OperationContext context)
          Executes a parsed operation request.
 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 validateIfOriginalSchema(OperationContext context, String idLocator, String schemaLocator)
          Ensures that the ID count is one if an original schema was requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetRecordByIdProvider

public GetRecordByIdProvider()
Default constructor

Method Detail

execute

public void execute(OperationContext context)
             throws Exception
Executes a parsed operation request.

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

validateIfOriginalSchema

public void validateIfOriginalSchema(OperationContext context,
                                     String idLocator,
                                     String schemaLocator)
                              throws OwsException
Ensures that the ID count is one if an original schema was requested.

Parameters:
context - the operation context
idLocator - the OwsException ID locator
schemaLocator - OwsException output schema locator
Throws:
OwsException - if validation fails

Esri Geoportal Server
1.0

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