ArcGIS Server Geoportal extension
10

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

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.esri.gpt.framework.context.BaseServlet
              extended by com.esri.gpt.control.csw.inbound202.DiscoveryServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
SoapDiscoveryServlet

public class DiscoveryServlet
extends BaseServlet

Servlet end-point for CSW 2.0.2 discovery requests.

See Also:
Serialized Form

Constructor Summary
DiscoveryServlet()
           
 
Method Summary
protected  void execute(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Executes a request.
protected  void executeCSW(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Executes a CSW request.
protected  String handleException(Exception e)
          Creation an ExceptionReport response when an exception is encountered.
protected  String readFullXml(HttpServletRequest request, RequestContext context, String uuid)
          Reads the full XML associated with a document UUID.
 
Methods inherited from class com.esri.gpt.framework.context.BaseServlet
authenticate, doGet, doPost, getCredentials, getLogger, getParameterValue, getRealm, readInputCharacters, writeCharacterResponse, writeHtmlResponse, writeXmlResponse
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryServlet

public DiscoveryServlet()
Method Detail

execute

protected void execute(HttpServletRequest request,
                       HttpServletResponse response,
                       RequestContext context)
                throws Exception
Executes a request.

Specified by:
execute in class BaseServlet
Parameters:
request - the servlet request
response - the servlet response
context - the request context
Throws:
Exception - if an exception occurs

executeCSW

protected void executeCSW(HttpServletRequest request,
                          HttpServletResponse response,
                          RequestContext context)
                   throws Exception
Executes a CSW request.

Parameters:
request - the servlet request
response - the servlet response
context - the request context
Throws:
Exception - if an exception occurs

handleException

protected String handleException(Exception e)
Creation an ExceptionReport response when an exception is encountered.

Parameters:
e - the exception
Returns:
the exception report string

readFullXml

protected String readFullXml(HttpServletRequest request,
                             RequestContext context,
                             String uuid)
                      throws Exception
Reads the full XML associated with a document UUID.

Parameters:
request - request the servlet request
context - context the request context
uuid - the document UUID
Returns:
the document XML
Throws:
Exception - if an exception occurs

ArcGIS Server Geoportal extension
10

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