Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.lucene
Class SingleIndexingServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.esri.gpt.catalog.lucene.SingleIndexingServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class SingleIndexingServlet
extends HttpServlet

Lucene indexing service for a single JVM/IndexWriter combination.

See Also:
Serialized Form

Constructor Summary
SingleIndexingServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Handles a GET request.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Handles a POST request.
protected  void executeDelete(HttpServletRequest request, HttpServletResponse response, RequestContext context, String[] ids)
          Executes an index deletion request.
protected  void executePublish(HttpServletRequest request, HttpServletResponse response, RequestContext context, String[] ids)
          Executes an index publication request.
protected  String readInputCharacters(HttpServletRequest request)
          Fully reads the characters from the request input stream.
 
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

SingleIndexingServlet

public SingleIndexingServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Handles a GET request.

The default behavior is the execute the doPost method.

Overrides:
doGet in class HttpServlet
Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Handles a POST request.

Overrides:
doPost in class HttpServlet
Parameters:
request - the servlet request
response - the servlet response
Throws:
ServletException
IOException

executeDelete

protected void executeDelete(HttpServletRequest request,
                             HttpServletResponse response,
                             RequestContext context,
                             String[] ids)
                      throws Exception
Executes an index deletion request.

Parameters:
request - the HTTP request
response - the HTTP response
context - the request context
ids - the document ids to delete
Throws:
Exception - if an exception occurs

executePublish

protected void executePublish(HttpServletRequest request,
                              HttpServletResponse response,
                              RequestContext context,
                              String[] ids)
                       throws Exception
Executes an index publication request.

Parameters:
request - the HTTP request
response - the HTTP response
context - the request context
ids - the document ids to publish
Throws:
Exception - if an exception occurs

readInputCharacters

protected String readInputCharacters(HttpServletRequest request)
                              throws IOException
Fully reads the characters from the request input stream.

Parameters:
request - the HTTP servlet request
Returns:
the characters read
Throws:
IOException - if an exception occurs

Esri Geoportal Server
1.2.9

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