
public class WikiAjaxDispatcherServlet
extends javax.servlet.http.HttpServlet
WikiAjaxDispatcherServlet.registerServlet(WikiAjaxServlet)| Constructor and Description |
|---|
WikiAjaxDispatcherServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Calls
this.performAction |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Calls
this.performAction |
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.getNextPathPath. |
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 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.
Thie creates a temporary bundle object called 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
this.performActiondoPost 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
this.performActiondoGet in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionpublic String getServletName(String path) throws javax.servlet.ServletException
AjaxUtil.getNextPathPath.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 this.registerServletCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.