ArcGIS Server Geoportal extension
10

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

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
                  extended by com.esri.gpt.control.csw.inbound202.SoapDiscoveryServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class SoapDiscoveryServlet
extends DiscoveryServlet

Servlet end-point for CSW 2.0.2 discovery requests.

See Also:
Serialized Form

Constructor Summary
SoapDiscoveryServlet()
           
 
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.
 DiscoveryResponse parse(String cswRequest, RequestContext requestContext)
          Parses and incoming CSW request and handles the appropriate action.
 
Methods inherited from class com.esri.gpt.control.csw.inbound202.DiscoveryServlet
readFullXml
 
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

SoapDiscoveryServlet

public SoapDiscoveryServlet()
Method Detail

execute

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

Overrides:
execute in class DiscoveryServlet
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.

Overrides:
executeCSW in class DiscoveryServlet
Parameters:
request - the servlet request
response - the servlet response
context - the request context
Throws:
Exception - if an exception occurs

parse

public DiscoveryResponse parse(String cswRequest,
                               RequestContext requestContext)
                        throws DiscoveryException
Parses and incoming CSW request and handles the appropriate action.

Parameters:
cswRequest - the incoming CSW request
Returns:
the CSW response
Throws:
DiscoveryException

handleException

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

Overrides:
handleException in class DiscoveryServlet
Parameters:
e - the exception
Returns:
the exception report string

ArcGIS Server Geoportal extension
10

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