java.lang.Object
cloud.piranha.webapp.impl.DefaultInvocationFinder
public class DefaultInvocationFinder
extends java.lang.Object
The invocation finder tries to find a servlet invocation matching a request for a path based or name
based dispatch.
Invocations returned by this finder take into account the various mappings, filters, welcome files and the default servlet.
- Author:
- Arjan Tijms
-
Constructor Summary
Constructors Constructor Description DefaultInvocationFinder(DefaultWebApplication webApplication)
-
Method Summary
Modifier and Type Method Description DefaultServletInvocation
addFilters(DispatcherType dispatcherType, DefaultServletInvocation servletInvocation, java.lang.String servletPath, java.lang.String pathInfo)
protected java.util.List<FilterEnvironment>
findFilterEnvironments(DispatcherType dispatcherType, java.lang.String servletPath, java.lang.String pathInfo, java.lang.String servletName)
Find the filter environments.DefaultServletInvocation
findServletInvocationByName(java.lang.String servletName)
DefaultServletInvocation
findServletInvocationByPath(java.lang.String servletPath, java.lang.String pathInfo)
DefaultServletInvocation
findServletInvocationByPath(DispatcherType dispatcherType, java.lang.String servletPath, java.lang.String pathInfo)
-
Constructor Details
-
Method Details
-
findServletInvocationByPath
public DefaultServletInvocation findServletInvocationByPath(java.lang.String servletPath, java.lang.String pathInfo) throws java.io.IOException, ServletException- Throws:
java.io.IOException
ServletException
-
findServletInvocationByPath
public DefaultServletInvocation findServletInvocationByPath(DispatcherType dispatcherType, java.lang.String servletPath, java.lang.String pathInfo) throws java.io.IOException, ServletException- Throws:
java.io.IOException
ServletException
-
addFilters
public DefaultServletInvocation addFilters(DispatcherType dispatcherType, DefaultServletInvocation servletInvocation, java.lang.String servletPath, java.lang.String pathInfo) -
findServletInvocationByName
-
findFilterEnvironments
protected java.util.List<FilterEnvironment> findFilterEnvironments(DispatcherType dispatcherType, java.lang.String servletPath, java.lang.String pathInfo, java.lang.String servletName)Find the filter environments.- Parameters:
servletPath
- the servlet path to which filters should apply.pathInfo
- the path info to which filters should apply.servletName
- name of the servlet to be filtered, if any. Can be null.- Returns:
- the filter environments.
-