package software.sitb.dswrs.core.netty;

/**
 * @author Sean sean.snow@live.com
 */
public interface NettyNetwork<I, O> {

    int getPort();

    String getHost();

    Class<I> getRequestClazz();

    Class<O> getResponseClazz();
}

@@ -38,10 +38,112 @@
 y;%0A%0A
-/*
+import io.netty.channel.ChannelHandler;%0Aimport io.netty.channel.ChannelPipeline;%0A%0A/**%0A * netty%E7%BD%91%E7%BB%9C%E6%9C%8D%E5%8A%A1%E6%8E%A5%E5%8F%A3%E5%AE%9A%E4%B9%89%0A 
 *%0A *
@@ -326,11 +326,228 @@
 Clazz();
+%0A%0A    /**%0A     * %E6%B7%BB%E5%8A%A0%E9%A2%9D%E5%A4%96%E7%9A%84%E6%B6%88%E6%81%AF%E7%BC%96%E7%A0%81%E5%99%A8%0A     *%0A     * @param pipeline %E7%AE%A1%E9%81%93%0A     */%0A    void addHandler(ChannelPipeline pipeline);%0A%0A    /**%0A     * %E8%8E%B7%E5%8F%96%E4%B8%80%E4%B8%AA%E6%B6%88%E6%81%AF%E5%A4%84%E7%90%86%E5%99%A8%0A     *%0A     * @return %E6%B6%88%E6%81%AF%E5%A4%84%E7%90%86%E5%99%A8%0A     */%0A    ChannelHandler getMessageHandler();
 %0A%7D%0A

add addHandler