public class CorsHandler extends Object implements ICorsHandler
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CorsHandler(io.undertow.server.HttpHandler nextHandler,
IStaticResourceCorsConfig corsConfig,
ICorsFilter corsFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected ICorsFilterClient |
createCorsFilterClient(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig)
Create the client for the cors filter.
|
protected IStaticResourceCorsConfig |
getCorsConfig() |
protected ICorsFilter |
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 CorsHandler(io.undertow.server.HttpHandler nextHandler,
@Nullable
IStaticResourceCorsConfig corsConfig,
ICorsFilter corsFilter)
protected io.undertow.server.HttpHandler getNextHandler()
protected IStaticResourceCorsConfig getCorsConfig()
protected ICorsFilter getCorsFilter()
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionprotected ICorsFilterClient createCorsFilterClient(io.undertow.server.HttpServerExchange exchange, IStaticResourceCorsConfig corsConfig)
protected Set<HttpMethod> getStaticResourceCorsAllowedMethods()
Copyright © 2016. All rights reserved.