public class ThriftXHREncoder extends org.jboss.netty.channel.SimpleChannelDownstreamHandler
NiftyDispatcher输出的
ThriftMessage响应数据转为DownstreamMessageEvent,| Constructor and Description |
|---|
ThriftXHREncoder() |
ThriftXHREncoder(com.google.common.base.Supplier<org.jboss.netty.handler.codec.http.HttpRequest> currentRequest) |
| Modifier and Type | Method and Description |
|---|---|
void |
writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e) |
public ThriftXHREncoder(com.google.common.base.Supplier<org.jboss.netty.handler.codec.http.HttpRequest> currentRequest)
currentRequest - 返回当前HTTP请求的Supplier实例,为null则使用默认实例DEFAULT_SUPPLIERpublic ThriftXHREncoder()
public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e) throws java.lang.Exception
writeRequested in class org.jboss.netty.channel.SimpleChannelDownstreamHandlerjava.lang.ExceptionCopyright © 2019. All rights reserved.