com.ecyrd.jspwiki
Class WikiServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ecyrd.jspwiki.WikiServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class WikiServlet
- extends 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
- Author:
- Andrew Jaquith
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WikiServlet
public WikiServlet()
init
public void init(ServletConfig config)
throws ServletException
-
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
destroy
public void destroy()
- Destroys the WikiServlet; called by the servlet container
when shutting down the webapp. This method calls the
protected method
WikiEngine.shutdown()
, which
sends WikiEngineEvent.SHUTDOWN
events to registered listeners.
- Specified by:
destroy
in interface Servlet
- Overrides:
destroy
in class GenericServlet
- See Also:
GenericServlet.destroy()
doPost
public void doPost(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
-
- Overrides:
doPost
in class HttpServlet
- Throws:
IOException
ServletException
doGet
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws IOException,
ServletException
-
- Overrides:
doGet
in class HttpServlet
- Throws:
IOException
ServletException