Package com.xpn.xwiki
Class XWikiRootServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.xpn.xwiki.XWikiRootServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class XWikiRootServlet extends javax.servlet.http.HttpServletThe 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: 520be6492701515dc42449bf7adc7f324ae91171 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XWikiRootServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voiddoOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)voidinit()-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
doOptions
protected void doOptions(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionResponds to an OPTIONS requests on / with appropriate headers.
- Overrides:
doOptionsin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionRedirects GET requests on
/(the server root) to the XWiki application context. That is usually/xwiki/, but can be configured fromweb.xmlusing theredirectToinitialization parameter for this servlet.- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
-