com.caucho.server.dispatch
Class ServletMapper

java.lang.Object
  extended by com.caucho.server.dispatch.ServletMapper

public class ServletMapper
extends java.lang.Object

Manages dispatching: servlets and filters.


Constructor Summary
ServletMapper(WebApp webApp)
           
 
Method Summary
 void addUrlRegexp(java.lang.String regexp, java.lang.String servletName, ServletMapping mapping)
          Adds a servlet mapping
 void destroy()
           
 java.util.ArrayList<java.lang.String> getIgnorePatterns()
          Returns the servlet plugin_ignore patterns.
 java.lang.String getServletClassByUri(java.lang.String uri)
           
 ServletManager getServletManager()
          Returns the servlet manager.
 java.lang.String getServletName(java.lang.String pattern)
           
 java.lang.String getServletPattern(java.lang.String uri)
           
 java.util.ArrayList<java.lang.String> getURLPatterns()
          Returns the servlet matching patterns.
 java.util.Set<java.lang.String> getUrlPatterns(java.lang.String servletName)
           
 WebApp getWebApp()
          Gets the servlet context.
 FilterChain mapServlet(ServletInvocation invocation)
           
 void setDefaultServlet(java.lang.String servletName)
          Sets the default servlet.
 void setServletManager(ServletManager manager)
          Sets the servlet manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletMapper

public ServletMapper(WebApp webApp)
Method Detail

getWebApp

public WebApp getWebApp()
Gets the servlet context.


getServletManager

public ServletManager getServletManager()
Returns the servlet manager.


setServletManager

public void setServletManager(ServletManager manager)
Sets the servlet manager.


addUrlRegexp

public void addUrlRegexp(java.lang.String regexp,
                         java.lang.String servletName,
                         ServletMapping mapping)
                  throws ServletException
Adds a servlet mapping

Throws:
ServletException

getUrlPatterns

public java.util.Set<java.lang.String> getUrlPatterns(java.lang.String servletName)

setDefaultServlet

public void setDefaultServlet(java.lang.String servletName)
                       throws ServletException
Sets the default servlet.

Throws:
ServletException

mapServlet

public FilterChain mapServlet(ServletInvocation invocation)
                       throws ServletException
Throws:
ServletException

getServletPattern

public java.lang.String getServletPattern(java.lang.String uri)

getServletClassByUri

public java.lang.String getServletClassByUri(java.lang.String uri)

getURLPatterns

public java.util.ArrayList<java.lang.String> getURLPatterns()
Returns the servlet matching patterns.


getServletName

public java.lang.String getServletName(java.lang.String pattern)

getIgnorePatterns

public java.util.ArrayList<java.lang.String> getIgnorePatterns()
Returns the servlet plugin_ignore patterns.


destroy

public void destroy()