java.lang.Object
cloud.piranha.core.impl.DefaultServletInvocation
- All Implemented Interfaces:
ServletInvocation
The default servlet invocation
- Author:
- Arjan Tijms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the web application request mapping.jakarta.servlet.FilterChain
Returns the filter chain.Returns the filter environments.The original path used to base the Servlet invocation on.Gets the original servlet path.Returns the path info.Returns the servlet environment.Returns the servlet name.Returns the servlet path.boolean
Returns whether this invocation is obtained from a getNamedDispatcher.void
Seed the filter chain.void
setApplicationRequestMapping
(WebApplicationRequestMapping applicationRequestMapping) Set the web application request mapping.void
setFilterChain
(jakarta.servlet.FilterChain filterChain) Set the filter chain.void
setFilterEnvironments
(List<FilterEnvironment> filterEnvironments) Set the filter environments.void
setFromNamed
(boolean fromNamed) void
setInvocationPath
(String invocationPath) Set the invocation path.void
setOriginalServletPath
(String originalServletPath) Set the originalServletPathvoid
setPathInfo
(String pathInfo) Set the path info.void
setServletEnvironment
(ServletEnvironment servletEnvironment) Set the servlet environment.void
setServletName
(String servletName) Set the servlet name.void
setServletPath
(String servletPath) Set the servlet path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cloud.piranha.core.api.ServletInvocation
canInvoke, getServletConfig, hasFilter, hasServlet, isServletUnavailable
-
Constructor Details
-
DefaultServletInvocation
public DefaultServletInvocation()
-
-
Method Details
-
getInvocationPath
Description copied from interface:ServletInvocation
The original path used to base the Servlet invocation on.- Specified by:
getInvocationPath
in interfaceServletInvocation
- Returns:
- the full invocation path
-
setInvocationPath
Set the invocation path.- Parameters:
invocationPath
- the invocation path.
-
getServletName
Description copied from interface:ServletInvocation
Returns the servlet name.- Specified by:
getServletName
in interfaceServletInvocation
- Returns:
- the servlet name
-
setServletName
Set the servlet name.- Parameters:
servletName
- the servlet name.
-
getServletPath
Description copied from interface:ServletInvocation
Returns the servlet path.- Specified by:
getServletPath
in interfaceServletInvocation
- Returns:
- the servlet path
-
setServletPath
Set the servlet path.- Parameters:
servletPath
- the servlet path.
-
getOriginalServletPath
Description copied from interface:ServletInvocation
Gets the original servlet path.The original servlet path differs from the servlet path if the invocation locator has found an alternative resource than the one requested. This is typically the case for welcome pages.
- Specified by:
getOriginalServletPath
in interfaceServletInvocation
- Returns:
- the original servlet path.
-
setOriginalServletPath
Set the originalServletPath- Parameters:
originalServletPath
- the originalServletPath
-
getPathInfo
Description copied from interface:ServletInvocation
Returns the path info.- Specified by:
getPathInfo
in interfaceServletInvocation
- Returns:
- the path info
-
setPathInfo
Set the path info.- Parameters:
pathInfo
- the path info.
-
getApplicationRequestMapping
Description copied from interface:ServletInvocation
Returns the web application request mapping.- Specified by:
getApplicationRequestMapping
in interfaceServletInvocation
- Returns:
- the web application request mapping
-
setApplicationRequestMapping
Set the web application request mapping.- Parameters:
applicationRequestMapping
- the web application request mapping.
-
getHttpServletMapping
- Returns:
- the httpServletMapping
-
getServletEnvironment
Description copied from interface:ServletInvocation
Returns the servlet environment.- Specified by:
getServletEnvironment
in interfaceServletInvocation
- Returns:
- the servlet environment
-
setServletEnvironment
Set the servlet environment.- Parameters:
servletEnvironment
- the servlet environment.
-
getFilterEnvironments
Description copied from interface:ServletInvocation
Returns the filter environments.- Specified by:
getFilterEnvironments
in interfaceServletInvocation
- Returns:
- the filter environments
-
setFilterEnvironments
Set the filter environments.- Parameters:
filterEnvironments
- the filter environments.
-
getFilterChain
public jakarta.servlet.FilterChain getFilterChain()Description copied from interface:ServletInvocation
Returns the filter chain.- Specified by:
getFilterChain
in interfaceServletInvocation
- Returns:
- the filter chain
-
setFilterChain
public void setFilterChain(jakarta.servlet.FilterChain filterChain) Set the filter chain.- Parameters:
filterChain
- the filter chain.
-
isFromNamed
public boolean isFromNamed()Description copied from interface:ServletInvocation
Returns whether this invocation is obtained from a getNamedDispatcher.- Specified by:
isFromNamed
in interfaceServletInvocation
- Returns:
- whether this invocation is obtained from a getNamedDispatcher
-
setFromNamed
public void setFromNamed(boolean fromNamed) - Specified by:
setFromNamed
in interfaceServletInvocation
- Parameters:
fromNamed
- whether this invocation is obtained from a getNamedDispatcher
-
seedFilterChain
public void seedFilterChain()Seed the filter chain.
-