Package org.springframework.security.web
Class FilterInvocation
java.lang.Object
org.springframework.security.web.FilterInvocation
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.
-
Constructor Summary
ConstructorsConstructorDescriptionFilterInvocation(@Nullable String contextPath, String servletPath, @Nullable String method, @Nullable jakarta.servlet.ServletContext servletContext) FilterInvocation(@Nullable String contextPath, String servletPath, @Nullable String pathInfo, @Nullable String query, @Nullable String method, @Nullable jakarta.servlet.ServletContext servletContext) FilterInvocation(@Nullable String contextPath, String servletPath, String method) FilterInvocation(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) FilterInvocation(String servletPath, String method) FilterInvocation(String contextPath, String servletPath, String pathInfo, String query, String method) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.FilterChaingetChain()Indicates the URL that the user agent used for this request.jakarta.servlet.http.HttpServletRequest@Nullable jakarta.servlet.http.HttpServletResponsejakarta.servlet.http.HttpServletRequestObtains the web application-specific fragment of the URL.@Nullable jakarta.servlet.http.HttpServletResponsetoString()
-
Constructor Details
-
FilterInvocation
public FilterInvocation(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) -
FilterInvocation
-
FilterInvocation
-
FilterInvocation
-
FilterInvocation
-
FilterInvocation
-
-
Method Details
-
getChain
public jakarta.servlet.FilterChain getChain() -
getFullRequestUrl
Indicates the URL that the user agent used for this request.- Returns:
- the full URL of this request
-
getHttpRequest
public jakarta.servlet.http.HttpServletRequest getHttpRequest() -
getHttpResponse
public @Nullable jakarta.servlet.http.HttpServletResponse getHttpResponse() -
getRequestUrl
Obtains the web application-specific fragment of the URL.- Returns:
- the URL, excluding any server name, context path or servlet path
-
getRequest
public jakarta.servlet.http.HttpServletRequest getRequest() -
getResponse
public @Nullable jakarta.servlet.http.HttpServletResponse getResponse() -
toString
-