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 toCorsHttpServletRequestFilterand can use the useful methods fromCorsHandlerHelper.- Since:
- 5.8.2
- See Also:
CorsHandlerHelper,CorsHandlerResult,CorsHttpServletRequestFilter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CorsHandlerResulthandle(HttpServletRequest request, HttpServletResponse response)Handles the CORS processing of a request, possibly doing nothing.
-
-
-
Method Detail
-
handle
CorsHandlerResult handle(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
Handles the CORS processing of a request, possibly doing nothing. This method cannot returnnull.- Returns:
- a CorsHandlerResult object.
- Throws:
java.io.IOException
-
-