コード例 #1
0
 public GzipHttpOutputInterceptor(
     GzipFactory factory, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush) {
   this(
       factory,
       VARY_ACCEPT_ENCODING_USER_AGENT,
       channel.getHttpConfiguration().getOutputBufferSize(),
       channel,
       next,
       syncFlush);
 }
コード例 #2
0
 public GzipHttpOutputInterceptor(
     GzipFactory factory,
     HttpField vary,
     HttpChannel channel,
     HttpOutput.Interceptor next,
     boolean syncFlush) {
   this(
       factory,
       vary,
       channel.getHttpConfiguration().getOutputBufferSize(),
       channel,
       next,
       syncFlush);
 }
コード例 #3
0
ファイル: HttpOutput.java プロジェクト: hypnoce/jetty.project
 public HttpOutput(HttpChannel channel) {
   _channel = channel;
   _interceptor = channel;
   _writeBlock =
       new SharedBlockingCallback() {
         @Override
         protected long getIdleTimeout() {
           long bto = getHttpChannel().getHttpConfiguration().getBlockingTimeout();
           if (bto > 0) return bto;
           if (bto < 0) return -1;
           return _channel.getIdleTimeout();
         }
       };
   HttpConfiguration config = channel.getHttpConfiguration();
   _bufferSize = config.getOutputBufferSize();
   _commitSize = config.getOutputAggregationSize();
   if (_commitSize > _bufferSize) {
     LOG.warn("OutputAggregationSize {} exceeds bufferSize {}", _commitSize, _bufferSize);
     _commitSize = _bufferSize;
   }
 }
コード例 #4
0
ファイル: HttpOutput.java プロジェクト: Nextzero/Jetty
 public HttpOutput(HttpChannel<?> channel) {
   _channel = channel;
   _bufferSize = _channel.getHttpConfiguration().getOutputBufferSize();
   _commitSize = _bufferSize / 4;
 }