Class DefaultServletInvocation

java.lang.Object
cloud.piranha.core.impl.DefaultServletInvocation
All Implemented Interfaces:
ServletInvocation

public class DefaultServletInvocation extends Object implements ServletInvocation
The default servlet invocation
Author:
Arjan Tijms
  • Constructor Details

    • DefaultServletInvocation

      public DefaultServletInvocation()
  • Method Details

    • getInvocationPath

      public String getInvocationPath()
      Description copied from interface: ServletInvocation
      The original path used to base the Servlet invocation on.
      Specified by:
      getInvocationPath in interface ServletInvocation
      Returns:
      the full invocation path
    • setInvocationPath

      public void setInvocationPath(String invocationPath)
      Set the invocation path.
      Parameters:
      invocationPath - the invocation path.
    • getServletName

      public String getServletName()
      Description copied from interface: ServletInvocation
      Returns the servlet name.
      Specified by:
      getServletName in interface ServletInvocation
      Returns:
      the servlet name
    • setServletName

      public void setServletName(String servletName)
      Set the servlet name.
      Parameters:
      servletName - the servlet name.
    • getServletPath

      public String getServletPath()
      Description copied from interface: ServletInvocation
      Returns the servlet path.
      Specified by:
      getServletPath in interface ServletInvocation
      Returns:
      the servlet path
    • setServletPath

      public void setServletPath(String servletPath)
      Set the servlet path.
      Parameters:
      servletPath - the servlet path.
    • getOriginalServletPath

      public String 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 interface ServletInvocation
      Returns:
      the original servlet path.
    • setOriginalServletPath

      public void setOriginalServletPath(String originalServletPath)
      Set the originalServletPath
      Parameters:
      originalServletPath - the originalServletPath
    • getPathInfo

      public String getPathInfo()
      Description copied from interface: ServletInvocation
      Returns the path info.
      Specified by:
      getPathInfo in interface ServletInvocation
      Returns:
      the path info
    • setPathInfo

      public void setPathInfo(String pathInfo)
      Set the path info.
      Parameters:
      pathInfo - the path info.
    • getApplicationRequestMapping

      public WebApplicationRequestMapping getApplicationRequestMapping()
      Description copied from interface: ServletInvocation
      Returns the web application request mapping.
      Specified by:
      getApplicationRequestMapping in interface ServletInvocation
      Returns:
      the web application request mapping
    • setApplicationRequestMapping

      public void setApplicationRequestMapping(WebApplicationRequestMapping applicationRequestMapping)
      Set the web application request mapping.
      Parameters:
      applicationRequestMapping - the web application request mapping.
    • getHttpServletMapping

      public DefaultHttpServletMapping getHttpServletMapping()
      Returns:
      the httpServletMapping
    • getServletEnvironment

      public ServletEnvironment getServletEnvironment()
      Description copied from interface: ServletInvocation
      Returns the servlet environment.
      Specified by:
      getServletEnvironment in interface ServletInvocation
      Returns:
      the servlet environment
    • setServletEnvironment

      public void setServletEnvironment(ServletEnvironment servletEnvironment)
      Set the servlet environment.
      Parameters:
      servletEnvironment - the servlet environment.
    • getFilterEnvironments

      public List<FilterEnvironment> getFilterEnvironments()
      Description copied from interface: ServletInvocation
      Returns the filter environments.
      Specified by:
      getFilterEnvironments in interface ServletInvocation
      Returns:
      the filter environments
    • setFilterEnvironments

      public void setFilterEnvironments(List<FilterEnvironment> filterEnvironments)
      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 interface ServletInvocation
      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 interface ServletInvocation
      Returns:
      whether this invocation is obtained from a getNamedDispatcher
    • setFromNamed

      public void setFromNamed(boolean fromNamed)
      Specified by:
      setFromNamed in interface ServletInvocation
      Parameters:
      fromNamed - whether this invocation is obtained from a getNamedDispatcher
    • seedFilterChain

      public void seedFilterChain()
      Seed the filter chain.