Esri Geoportal Server
1.0

com.esri.gpt.control.rest
Class OpenSearchDescriptionServlet

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.rest.OpenSearchDescriptionServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class OpenSearchDescriptionServlet
extends BaseServlet

Returns the OpenSearch description XML.

The XML returned is based upon the file:
gpt/search/openSearchDescription.xml

In addition, the following substitutions are made:
{openSearch.shortName} - property resource catalog.openSearch.shortName
{openSearch.description} - property resource catalog.openSearch.description
{openSearch.restPath} - rest API path for this web application (e.g. http://somehost:someport/GPT9/rest/find/document)
{openSearch.imagePath} - image folder path for this web application (e.g. http://somehost:someport/GPT9/catalog/images)

See Also:
Serialized Form

Constructor Summary
OpenSearchDescriptionServlet()
           
 
Method Summary
protected  void execute(HttpServletRequest request, HttpServletResponse response, RequestContext context)
          Executes a request.
 
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

OpenSearchDescriptionServlet

public OpenSearchDescriptionServlet()
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

Esri Geoportal Server
1.0

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