org.springframework.security.web
Class FilterInvocation

java.lang.Object
  extended by org.springframework.security.web.FilterInvocation

public class FilterInvocation
extends Object

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.

Version:
$Id: FilterInvocation.java 3633 2009-05-01 10:43:41Z ltaylor $
Author:
Ben Alex, colin sampaleanu

Constructor Summary
FilterInvocation(ServletRequest request, ServletResponse response, FilterChain chain)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterInvocation

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

getChain

public FilterChain getChain()

getFullRequestUrl

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

getHttpRequest

public HttpServletRequest getHttpRequest()

getHttpResponse

public HttpServletResponse getHttpResponse()

getRequestUrl

public String getRequestUrl()
Obtains the web application-specific fragment of the URL.

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

getRequest

public HttpServletRequest getRequest()

getResponse

public HttpServletResponse getResponse()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.