public class IndexerServlet
extends javax.servlet.http.HttpServlet
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.
https://fascinator.usq.edu.au/trac/wiki/Fascinator/Documents/Portal/ JavaCore#OurWebServlet
| Constructor and Description |
|---|
IndexerServlet() |
| Modifier and Type | Method and Description |
|---|---|
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
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletException - If it found errors during startupprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletrequest - The incoming requestresponse - The response objectjavax.servlet.ServletException - If errors foundIOException - If errors foundprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletrequest - The incoming requestresponse - The response objectjavax.servlet.ServletException - If errors foundIOException - If errors foundpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletCopyright © 2009-2016. All Rights Reserved.