コード例 #1
0
 public Http11NioProtocol() {
   endpoint = new NioEndpoint();
   cHandler = new Http11ConnectionHandler(this);
   ((NioEndpoint) endpoint).setHandler(cHandler);
   setSoLinger(Constants.DEFAULT_CONNECTION_LINGER);
   setSoTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);
   setTcpNoDelay(Constants.DEFAULT_TCP_NO_DELAY);
 }
コード例 #2
0
 public AjpNioProtocol() {
   endpoint = new NioEndpoint();
   cHandler = new AjpConnectionHandler(this);
   ((NioEndpoint) endpoint).setHandler(cHandler);
   setSoLinger(Constants.DEFAULT_CONNECTION_LINGER);
   setSoTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);
   setTcpNoDelay(Constants.DEFAULT_TCP_NO_DELAY);
   // AJP does not use Send File
   ((NioEndpoint) endpoint).setUseSendfile(false);
 }