com.xpn.xwiki.web
Class HomePageRedirectServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.xpn.xwiki.web.HomePageRedirectServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class HomePageRedirectServlet
extends HttpServlet

A simple action that redirects to the main page of the wiki. This is to allow users to enter a URL like http://localhost:8080/xwiki and be redirected automatically to http://localhost:8080/xwiki/bin/view/Main/.

See Also:
Serialized Form

Constructor Summary
HomePageRedirectServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, 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
 

Constructor Detail

HomePageRedirectServlet

public HomePageRedirectServlet()
Method Detail

init

public void init()
          throws ServletException
Overrides:
init in class GenericServlet
Throws:
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException