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_SUPPLIER
public 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.SimpleChannelDownstreamHandler
java.lang.Exception
Copyright © 2019. All rights reserved.