com.xpn.xwiki
Class XWikiRootServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.xpn.xwiki.XWikiRootServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class XWikiRootServlet
- extends javax.servlet.http.HttpServlet
The root servlet for XWiki. The purpose of this servlet is to respond to WebDAV requests correctly and to redirect
get requests on server root appropriately.
- Version:
- $Id: XWikiRootServlet.java 24594 2009-10-20 15:47:51Z sdumitriu $
- See Also:
- Serialized Form
|
Method Summary |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doOptions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
init()
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, 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 |
XWikiRootServlet
public XWikiRootServlet()
init
public void init()
throws javax.servlet.ServletException
-
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException- See Also:
GenericServlet.init()
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
-
Responds to an OPTIONS requests on / with appropriate headers.
- Overrides:
doOptions in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
-
Redirects GET requests on / (the server root) to the XWiki application context. That is usually
/xwiki/, but can be configured from web.xml using the redirectTo
initialization parameter for this servlet.
- Overrides:
doGet in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2004-2009 XWiki. All Rights Reserved.