
public class WikiAjaxDispatcherServlet extends javax.servlet.http.HttpServlet
registerServlet(WikiAjaxServlet)| Constructor and Description |
|---|
WikiAjaxDispatcherServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
WikiAjaxServlet |
findServletByName(String servletAlias)
Find the
WikiAjaxServlet given the servletAlias that it was registered with. |
String |
getServletName(String path)
Get the ServletName from the requestURI "/ajax/
AjaxUtil.getNextPathPart(java.lang.String, java.lang.String). |
void |
init(javax.servlet.ServletConfig config)
This sets the AjaxPath to "/ajax/" as configured in "jspwiki.ajax.url.prefix".
|
static void |
registerServlet(String alias,
WikiAjaxServlet servlet)
Register a
WikiAjaxServlet with a specific alias, and default permission PagePermission.VIEW. |
static void |
registerServlet(String alias,
WikiAjaxServlet servlet,
Permission perm)
Regster a
WikiAjaxServlet given an alias, the servlet, and the permission. |
static void |
registerServlet(WikiAjaxServlet servlet)
Register a
WikiAjaxServlet using the servlet mapping as the alias |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic WikiAjaxDispatcherServlet()
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic static void registerServlet(WikiAjaxServlet servlet)
WikiAjaxServlet using the servlet mapping as the aliaspublic static void registerServlet(String alias, WikiAjaxServlet servlet)
WikiAjaxServlet with a specific alias, and default permission PagePermission.VIEW.public static void registerServlet(String alias, WikiAjaxServlet servlet, Permission perm)
WikiAjaxServlet given an alias, the servlet, and the permission.
This creates a temporary bundle object called WikiAjaxDispatcherServlet.AjaxServletContaineralias - the uri link to this servletservlet - the servlet being registeredperm - the permission required to execute the servlet.public void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionpublic String getServletName(String path) throws javax.servlet.ServletException
AjaxUtil.getNextPathPart(java.lang.String, java.lang.String).path - The requestURI, which must contains "/ajax/javax.servlet.ServletException - if the path is invalidpublic WikiAjaxServlet findServletByName(String servletAlias)
WikiAjaxServlet given the servletAlias that it was registered with.servletAlias - the value provided to registerServlet(org.apache.wiki.ajax.WikiAjaxServlet)WikiAjaxServlet given the servletAlias that it was registered with.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.