public class FilterInvocation extends Object
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 and Description |
---|
FilterInvocation(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.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) |
Modifier and Type | Method and Description |
---|---|
javax.servlet.FilterChain |
getChain() |
String |
getFullRequestUrl()
Indicates the URL that the user agent used for this request.
|
javax.servlet.http.HttpServletRequest |
getHttpRequest() |
javax.servlet.http.HttpServletResponse |
getHttpResponse() |
javax.servlet.http.HttpServletRequest |
getRequest() |
String |
getRequestUrl()
Obtains the web application-specific fragment of the URL.
|
javax.servlet.http.HttpServletResponse |
getResponse() |
String |
toString() |
public FilterInvocation(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
public javax.servlet.FilterChain getChain()
public String getFullRequestUrl()
The returned URL does not reflect the port number determined from a
PortResolver
.
public javax.servlet.http.HttpServletRequest getHttpRequest()
public javax.servlet.http.HttpServletResponse getHttpResponse()
public String getRequestUrl()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()