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(java.lang.String servletAlias)
Find the
WikiAjaxServlet given the servletAlias that it was registered with. |
java.lang.String |
getServletName(java.lang.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(java.lang.String alias,
WikiAjaxServlet servlet)
Register a
WikiAjaxServlet with a specific alias, and default permission PagePermission.VIEW. |
static void |
registerServlet(java.lang.String alias,
WikiAjaxServlet servlet,
java.security.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(java.lang.String alias, WikiAjaxServlet servlet)
WikiAjaxServlet with a specific alias, and default permission PagePermission.VIEW.public static void registerServlet(java.lang.String alias, WikiAjaxServlet servlet, java.security.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 java.io.IOException, javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletjava.io.IOExceptionjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.io.IOException, javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletjava.io.IOExceptionjavax.servlet.ServletExceptionpublic java.lang.String getServletName(java.lang.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(java.lang.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 (c) 2001-2022 The Apache Software Foundation. All rights reserved.