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:
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(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 returnnull
.- Returns:
- a CorsHandlerResult object.
- Throws:
IOException
-