protected class SpincastUndertowServer.CorsHandler extends Object implements io.undertow.server.HttpHandler
| Constructor and Description |
|---|
CorsHandler(io.undertow.server.HttpHandler nextHandler,
IStaticResourceCorsConfig corsConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
corsAddAllowCookies(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig) |
protected void |
corsAddAlloweOrigin(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig,
String originHeader) |
protected void |
corsAddExtraHeadersAllowedToBeRead(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig) |
protected Set<String> |
getAllowedOriginsLowercased() |
protected IStaticResourceCorsConfig |
getCorsConfig() |
protected io.undertow.server.HttpHandler |
getNextHandler() |
void |
handleRequest(io.undertow.server.HttpServerExchange exchange) |
protected boolean |
isCorsOriginValid(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig,
String originHeader) |
public CorsHandler(io.undertow.server.HttpHandler nextHandler,
IStaticResourceCorsConfig corsConfig)
protected io.undertow.server.HttpHandler getNextHandler()
protected IStaticResourceCorsConfig getCorsConfig()
public void handleRequest(io.undertow.server.HttpServerExchange exchange)
throws Exception
handleRequest in interface io.undertow.server.HttpHandlerExceptionprotected boolean isCorsOriginValid(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig,
String originHeader)
protected void corsAddAlloweOrigin(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig,
String originHeader)
protected void corsAddAllowCookies(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig)
protected void corsAddExtraHeadersAllowedToBeRead(io.undertow.server.HttpServerExchange exchange,
IStaticResourceCorsConfig corsConfig)
Copyright © 2016. All rights reserved.