Package org.apache.tapestry5.http.services

# Class CorsHttpServletRequestFilter

java.lang.Object
org.apache.tapestry5.http.services.CorsHttpServletRequestFilter

All Implemented Interfaces:
  `HttpServletRequestFilter`

@UsesOrderedConfiguration(CorsHandler.class) public class CorsHttpServletRequestFilter extends Object implements HttpServletRequestFilter
HttpServletRequestFilter that handles CORS. Uses an ordered configuration of CorsHandler instances.

Since:
  5.8.2
See Also:
  - `CorsHandler`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CorsHttpServletRequestFilter(List<CorsHandler> handlers)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpServletRequestHandler handler)`
  Filter interface for the HttpServletRequestHandler pipeline.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CorsHttpServletRequestFilter

    public CorsHttpServletRequestFilter(List<CorsHandler> handlers)

- ## Method Details

  - ### service

    public boolean service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, HttpServletRequestHandler handler) throws IOException
    Description copied from interface: `HttpServletRequestFilter`
    Filter interface for the HttpServletRequestHandler pipeline. A filter should delegate to the handler. It may perform operations before or after invoking the handler, and may modify the request and response passed in to the handler.
    Specified by:
      `service` in interface `HttpServletRequestFilter`
    Returns:
      true if the request has been handled, false otherwise
    Throws:
      `IOException`