Package org.apache.tapestry5.http.services

# Interface CorsHandler

All Known Implementing Classes:
  `DefaultCorsHandler`

public interface CorsHandler
Interface implemented by classes handling CORS (Cross-Origin Resource Sharing) in requests. Implementations should be contributed to `CorsHttpServletRequestFilter` and can use the useful methods from `CorsHandlerHelper`.

Since:
  5.8.2
See Also:
  - `CorsHandlerHelper`
  - `CorsHandlerResult`
  - `CorsHttpServletRequestFilter`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CorsHandlerResult`
  `handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)`
  Handles the CORS processing of a request, possibly doing nothing.

- ## Method Details

  - ### handle

    CorsHandlerResult handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
    Handles the CORS processing of a request, possibly doing nothing. This method cannot return `null`.
    Returns:
      a CorsHandlerResult object.
    Throws:
      `IOException`