Package org.apache.wiki
Class WikiServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.wiki.WikiServlet
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class WikiServlet extends javax.servlet.http.HttpServlet
This provides a master servlet for dealing with short urls. It mostly does redirects to the proper JSP pages. It also intercepts the
servlet shutdown events and uses it to signal wiki shutdown.
- Since:
- 2.2
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description WikiServlet() -
Method Summary
Modifier and Type Method Description voiddestroy()Destroys the WikiServlet; called by the servlet container when shutting down the webapp.voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)voidinit(javax.servlet.ServletConfig config)Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WikiServlet
public WikiServlet()
-
-
Method Details
-
init
- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
destroy
Destroys the WikiServlet; called by the servlet container when shutting down the webapp. This method calls the protected methodWikiEngine.shutdown(), which sendsWikiEngineEvent.SHUTDOWNevents to registered listeners.- Specified by:
destroyin interfacejavax.servlet.Servlet- Overrides:
destroyin classjavax.servlet.GenericServlet- See Also:
GenericServlet.destroy()
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException- Overrides:
doPostin classjavax.servlet.http.HttpServlet- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-