View Javadoc
1   /*
2    * Copyright 2015 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  
17  package io.netty.handler.codec.http2;
18  
19  import io.netty.handler.codec.http2.Http2HeadersEncoder.SensitivityDetector;
20  import io.netty.util.internal.UnstableApi;
21  
22  /**
23   * Builder which builds {@link HttpToHttp2ConnectionHandler} objects.
24   */
25  @UnstableApi
26  public final class HttpToHttp2ConnectionHandlerBuilder extends
27          AbstractHttp2ConnectionHandlerBuilder<HttpToHttp2ConnectionHandler, HttpToHttp2ConnectionHandlerBuilder> {
28  
29      @Override
30      public HttpToHttp2ConnectionHandlerBuilder validateHeaders(boolean validateHeaders) {
31          return super.validateHeaders(validateHeaders);
32      }
33  
34      @Override
35      public HttpToHttp2ConnectionHandlerBuilder initialSettings(Http2Settings settings) {
36          return super.initialSettings(settings);
37      }
38  
39      @Override
40      public HttpToHttp2ConnectionHandlerBuilder frameListener(Http2FrameListener frameListener) {
41          return super.frameListener(frameListener);
42      }
43  
44      @Override
45      public HttpToHttp2ConnectionHandlerBuilder gracefulShutdownTimeoutMillis(long gracefulShutdownTimeoutMillis) {
46          return super.gracefulShutdownTimeoutMillis(gracefulShutdownTimeoutMillis);
47      }
48  
49      @Override
50      public HttpToHttp2ConnectionHandlerBuilder server(boolean isServer) {
51          return super.server(isServer);
52      }
53  
54      @Override
55      public HttpToHttp2ConnectionHandlerBuilder connection(Http2Connection connection) {
56          return super.connection(connection);
57      }
58  
59      @Override
60      public HttpToHttp2ConnectionHandlerBuilder codec(Http2ConnectionDecoder decoder,
61                                                          Http2ConnectionEncoder encoder) {
62          return super.codec(decoder, encoder);
63      }
64  
65      @Override
66      public HttpToHttp2ConnectionHandlerBuilder frameLogger(Http2FrameLogger frameLogger) {
67          return super.frameLogger(frameLogger);
68      }
69  
70      @Override
71      public HttpToHttp2ConnectionHandlerBuilder encoderEnforceMaxConcurrentStreams(
72              boolean encoderEnforceMaxConcurrentStreams) {
73          return super.encoderEnforceMaxConcurrentStreams(encoderEnforceMaxConcurrentStreams);
74      }
75  
76      @Override
77      public HttpToHttp2ConnectionHandlerBuilder headerSensitivityDetector(
78              SensitivityDetector headerSensitivityDetector) {
79          return super.headerSensitivityDetector(headerSensitivityDetector);
80      }
81  
82      @Override
83      public HttpToHttp2ConnectionHandlerBuilder initialHuffmanDecodeCapacity(int initialHuffmanDecodeCapacity) {
84          return super.initialHuffmanDecodeCapacity(initialHuffmanDecodeCapacity);
85      }
86  
87      @Override
88      public HttpToHttp2ConnectionHandler build() {
89          return super.build();
90      }
91  
92      @Override
93      protected HttpToHttp2ConnectionHandler build(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder,
94                                                   Http2Settings initialSettings) {
95          return new HttpToHttp2ConnectionHandler(decoder, encoder, initialSettings, isValidateHeaders());
96      }
97  }