public class

FilterInvocation

extends Object
java.lang.Object
   ↳ org.springframework.security.web.FilterInvocation

Class Overview

Holds objects associated with a HTTP filter.

Guarantees the request and response are instances of HttpServletRequest and HttpServletResponse, and that there are no null objects.

Required so that security system classes can obtain access to the filter environment, as well as the request and response.

Summary

Public Constructors
FilterInvocation(ServletRequest request, ServletResponse response, FilterChain chain)
FilterInvocation(String servletPath, String method)
FilterInvocation(String contextPath, String servletPath, String method)
FilterInvocation(String contextPath, String servletPath, String pathInfo, String query, String method)
Public Methods
FilterChain getChain()
String getFullRequestUrl()
Indicates the URL that the user agent used for this request.
HttpServletRequest getHttpRequest()
HttpServletResponse getHttpResponse()
HttpServletRequest getRequest()
String getRequestUrl()
Obtains the web application-specific fragment of the URL.
HttpServletResponse getResponse()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FilterInvocation (ServletRequest request, ServletResponse response, FilterChain chain)

public FilterInvocation (String servletPath, String method)

public FilterInvocation (String contextPath, String servletPath, String method)

public FilterInvocation (String contextPath, String servletPath, String pathInfo, String query, String method)

Public Methods

public FilterChain getChain ()

public String getFullRequestUrl ()

Indicates the URL that the user agent used for this request.

The returned URL does not reflect the port number determined from a PortResolver.

Returns
  • the full URL of this request

public HttpServletRequest getHttpRequest ()

public HttpServletResponse getHttpResponse ()

public HttpServletRequest getRequest ()

public String getRequestUrl ()

Obtains the web application-specific fragment of the URL.

Returns
  • the URL, excluding any server name, context path or servlet path

public HttpServletResponse getResponse ()

public String toString ()