| Interface | Description |
|---|---|
| XHRHomepageProvider |
| Class | Description |
|---|---|
| ThriftHttpCodec |
HttpClientCodec本身已经实现了ThriftFrameCodec接口的所有方法,
只是因为ThriftFrameCodec是nifty定义的接口,所以HttpClientCodec不是ThriftFrameCodec实例,
ThriftHttpCodec的作用就是将HttpClientCodec封装成ThriftFrameCodec实例 |
| ThriftHttpCodecFactory | |
| ThriftMethodProcessorCustom |
定制
ThriftMethodProcessor,收到的primitive封装类型(Boolean,Integer...)如果是null不会被转成default 0. |
| ThriftServerService |
创建thrift服务实例
ThriftServer,封装为Service |
| ThriftServerService.Builder | |
| ThriftServerXHRCodec |
A combination of
ThriftXHRDecoder and ThriftXHREncoder
which enables easier server side HTTP implementation. |
| ThriftServiceProcessorCustom |
ThriftServiceProcessor子类,代码基本都是从父类复制过来,
只是在构造方法ThriftServiceProcessorCustom.ThriftServiceProcessorCustom(ThriftCodecManager, List, List)中
用ThriftMethodProcessorCustom替换了ThriftMethodProcessor |
| ThriftXHRDecoder |
XHR(XML Http Request)解码器
将 HttpRequest请求的内容数据(content)转为ThriftMessage,
提供给NiftyDispatcher |
| ThriftXHREncoder |
XHR(XML Http Request)编码器
将 NiftyDispatcher输出的
ThriftMessage响应数据转为DownstreamMessageEvent, |
Copyright © 2019. All rights reserved.