public class CorsHandler
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
This handler can be configured using a CorsConfig, please
refer to this class for details about the configuration options available.
This code was borrowed from Netty 4 and refactored to work for Elasticsearch's Netty 3 setup.
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
ANY_ORIGIN |
| コンストラクタと説明 |
|---|
CorsHandler(CorsConfig config)
Creates a new instance with the specified
CorsConfig. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
static void |
setCorsResponseHeaders(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpResponse resp,
CorsConfig config) |
public CorsHandler(CorsConfig config)
CorsConfig.public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
throws Exception
messageReceived クラス内 org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionpublic static void setCorsResponseHeaders(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpResponse resp,
CorsConfig config)
Copyright © 2009–2016. All rights reserved.