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}