Package org.elasticsearch.http
Class CorsHandler
java.lang.Object
org.elasticsearch.http.CorsHandler
public class CorsHandler
extends java.lang.Object
This file is forked from the https://netty.io project. In particular it combines the following three
files: io.netty.handler.codec.http.cors.CorsHandler, io.netty.handler.codec.http.cors.CorsConfig, and
io.netty.handler.codec.http.cors.CorsConfigBuilder.
It modifies the original netty code to operation on Elasticsearch http request/response abstractions.
Additionally, it removes CORS features that are not used by Elasticsearch.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CorsHandler.Config
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCESS_CONTROL_ALLOW_ORIGIN
static java.lang.String
ACCESS_CONTROL_REQUEST_METHOD
static java.lang.String
ANY_ORIGIN
static java.lang.String
DATE
static java.lang.String
ORIGIN
static java.lang.String
VARY
-
Method Summary
Modifier and Type Method Description static CorsHandler.Config
disabled()
static CorsHandler.Config
fromSettings(Settings settings)
-
Field Details
-
ANY_ORIGIN
public static final java.lang.String ANY_ORIGIN- See Also:
- Constant Field Values
-
ORIGIN
public static final java.lang.String ORIGIN- See Also:
- Constant Field Values
-
DATE
public static final java.lang.String DATE- See Also:
- Constant Field Values
-
VARY
public static final java.lang.String VARY- See Also:
- Constant Field Values
-
ACCESS_CONTROL_REQUEST_METHOD
public static final java.lang.String ACCESS_CONTROL_REQUEST_METHOD- See Also:
- Constant Field Values
-
ACCESS_CONTROL_ALLOW_ORIGIN
public static final java.lang.String ACCESS_CONTROL_ALLOW_ORIGIN- See Also:
- Constant Field Values
-
-
Method Details