com.googlecode.fascinator.portal.servlet
Class IndexerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.googlecode.fascinator.portal.servlet.IndexerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class IndexerServlet
extends javax.servlet.http.HttpServlet

Introduction

This Servlet is mainly just a shell, because its doGet() and doPost() methods are empty. We are relying on Tapestry to do the true web server work later. What we do want here however is to instantiate anything we require to start with the server. Because Tapestry services are instantiated and injected on demand, we can't rely on them for some of our system components.

Wiki Link

https://fascinator.usq.edu.au/trac/wiki/Fascinator/Documents/Portal/JavaCore#OurWebServlet

Author:
Oliver Lucido
See Also:
Serialized Form

Field Summary
static String DEFAULT_MESSAGING_HOME
          Directory to store operational AMQ data
 
Constructor Summary
IndexerServlet()
           
 
Method Summary
 void destroy()
          Shuts down any objects requiring such.
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Empty method.
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Empty method.
 void init()
          Initialise the Servlet, called at Server startup
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGING_HOME

public static final String DEFAULT_MESSAGING_HOME
Directory to store operational AMQ data

Constructor Detail

IndexerServlet

public IndexerServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialise the Servlet, called at Server startup

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - If it found errors during startup

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Empty method. Process an incoming GET request. We don't need to do anything as Tapestry will handle this.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - The incoming request
response - The response object
Throws:
javax.servlet.ServletException - If errors found
IOException - If errors found

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Empty method. Process an incoming POST request. We don't need to do anything as Tapestry will handle this.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - The incoming request
response - The response object
Throws:
javax.servlet.ServletException - If errors found
IOException - If errors found

destroy

public void destroy()
Shuts down any objects requiring such.

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright © 2009-2011. All Rights Reserved.