001package com.facebook.swift.service; 002 003import org.jboss.netty.handler.codec.http.HttpClientCodec; 004import org.jboss.netty.handler.codec.http.HttpServerCodec; 005 006import com.facebook.nifty.codec.ThriftFrameCodec; 007 008/** 009 * {@link HttpClientCodec}本身已ç»å®žçŽ°äº†{@link ThriftFrameCodec}接å£çš„æ‰€æœ‰æ–¹æ³•, 010 * åªæ˜¯å› 为{@link ThriftFrameCodec}是nifty定义的接å£ï¼Œæ‰€ä»¥{@link HttpClientCodec}䏿˜¯{@link ThriftFrameCodec}实例, 011 * {@link ThriftHttpCodec}的作用就是将{@link HttpClientCodec}å°è£…æˆ{@link ThriftFrameCodec}实例 012 * 013 * @author guyadong 014 * 015 */ 016public class ThriftHttpCodec extends HttpServerCodec implements ThriftFrameCodec { 017 018}