Java 类org.jboss.netty.channel.socket.SocketChannelConfig 实例源码

项目:httptunnel    文件:HttpTunnelClientChannelConfigTest.java   
@Before
public void setUp() {
    sendChannelConfig = mockContext.mock(SocketChannelConfig.class,
            "sendChannelConfig");
    pollChannelConfig = mockContext.mock(SocketChannelConfig.class,
            "pollChannelConfig");

    config = new HttpTunnelClientChannelConfig(sendChannelConfig,
            pollChannelConfig);
}
项目:httptunnel    文件:HttpTunnelClientChannelConfig.java   
HttpTunnelClientChannelConfig(SocketChannelConfig sendChannelConfig, SocketChannelConfig pollChannelConfig) {
    this.sendChannelConfig = sendChannelConfig;
    this.pollChannelConfig = pollChannelConfig;

    userAgent = System.getProperty(PROP_UserAgent, DEFAULT_USER_AGENT);
}
项目:httptunnel    文件:FakeSocketChannel.java   
@Override
public SocketChannelConfig getConfig() {
    return config;
}