org.apache.hc.core5.http.impl.io

## Class DefaultBHttpServerConnectionFactory

- java.lang.Object
- - org.apache.hc.core5.http.impl.io.DefaultBHttpServerConnectionFactory

- All Implemented Interfaces:
    HttpConnectionFactory<DefaultBHttpServerConnection>

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      public class DefaultBHttpServerConnectionFactory
      extends Object
      implements HttpConnectionFactory<DefaultBHttpServerConnection>

  Default factory for `HttpServerConnection`s.
  Since:
    4.3

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DefaultBHttpServerConnectionFactory.Builder` Builder for `DefaultBHttpServerConnectionFactory`.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig)`
    `DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)`
    `DefaultBHttpServerConnectionFactory(String scheme, Http1Config http1Config, CharCodingConfig charCodingConfig, HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory, HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static DefaultBHttpServerConnectionFactory.Builder` | `builder()` Create a new `DefaultBHttpServerConnectionFactory.Builder`.
    `DefaultBHttpServerConnection` | `createConnection(Socket socket)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultBHttpServerConnectionFactory

          public DefaultBHttpServerConnectionFactory(String scheme,
                                             Http1Config http1Config,
                                             CharCodingConfig charCodingConfig,
                                             ContentLengthStrategy incomingContentStrategy,
                                             ContentLengthStrategy outgoingContentStrategy,
                                             HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory,
                                             HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)

    - #### DefaultBHttpServerConnectionFactory

          public DefaultBHttpServerConnectionFactory(String scheme,
                                             Http1Config http1Config,
                                             CharCodingConfig charCodingConfig,
                                             HttpMessageParserFactory<ClassicHttpRequest> requestParserFactory,
                                             HttpMessageWriterFactory<ClassicHttpResponse> responseWriterFactory)

    - #### DefaultBHttpServerConnectionFactory

          public DefaultBHttpServerConnectionFactory(String scheme,
                                             Http1Config http1Config,
                                             CharCodingConfig charCodingConfig)

  - ### Method Detail

    - #### createConnection

          public DefaultBHttpServerConnection createConnection(Socket socket)
                                                        throws IOException

      Specified by:
        `createConnection` in interface `HttpConnectionFactory<DefaultBHttpServerConnection>`
      Throws:
        `IOException`

    - #### builder

          public static DefaultBHttpServerConnectionFactory.Builder builder()

      Create a new `DefaultBHttpServerConnectionFactory.Builder`.
      Since:
        5.1

Copyright © 2005–2020 The Apache Software Foundation. All rights reserved.