Package org.apache.wiki
Class WikiServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.wiki.WikiServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroys the WikiServlet; called by the servlet container when shutting down the webapp.void
doGet
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
doPost
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) void
init
(javax.servlet.ServletConfig config) 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
-
Constructor Details
-
WikiServlet
public WikiServlet()
-
-
Method Details
-
init
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in 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 methodEngine.stop()
, which sendsWikiEngineEvent.SHUTDOWN
events to registered listeners, as well as notifying availableEngineLifecycleExtension
s.- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
- See Also:
-
GenericServlet.destroy()
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException - Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
javax.servlet.ServletException
-