public class CorsHandlerDefault extends Object implements CorsHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CorsHandlerDefault(io.undertow.server.HttpHandler nextHandler,
StaticResourceCorsConfig corsConfig,
CorsFilter corsFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected CorsFilterClient |
createCorsFilterClient(io.undertow.server.HttpServerExchange exchange,
StaticResourceCorsConfig corsConfig)
Create the client for the cors filter.
|
protected StaticResourceCorsConfig |
getCorsConfig() |
protected CorsFilter |
getCorsFilter() |
protected io.undertow.server.HttpHandler |
getNextHandler() |
protected Set<HttpMethod> |
getStaticResourceCorsAllowedMethods()
Those are the valid HTTP methods for requests to
static resources served directly by the HTTP server.
|
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
public CorsHandlerDefault(io.undertow.server.HttpHandler nextHandler,
@Nullable
StaticResourceCorsConfig corsConfig,
CorsFilter corsFilter)
protected io.undertow.server.HttpHandler getNextHandler()
protected StaticResourceCorsConfig getCorsConfig()
protected CorsFilter getCorsFilter()
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionprotected CorsFilterClient createCorsFilterClient(io.undertow.server.HttpServerExchange exchange, StaticResourceCorsConfig corsConfig)
protected Set<HttpMethod> getStaticResourceCorsAllowedMethods()
Copyright © 2019. All rights reserved.