@Contract(threading=STATELESS) public class ManagedHttpClientConnectionFactory extends Object implements org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection>
ManagedHttpClientConnection
instances.Modifier and Type | Class and Description |
---|---|
static class |
ManagedHttpClientConnectionFactory.Builder
Builder for
ManagedHttpClientConnectionFactory . |
Modifier and Type | Field and Description |
---|---|
static ManagedHttpClientConnectionFactory |
INSTANCE
Default instance of
ManagedHttpClientConnectionFactory . |
Constructor and Description |
---|
ManagedHttpClientConnectionFactory() |
ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig,
org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory) |
ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig,
org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestWriterFactory,
org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory) |
ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config,
org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig,
org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestWriterFactory,
org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory,
org.apache.hc.core5.http.ContentLengthStrategy incomingContentStrategy,
org.apache.hc.core5.http.ContentLengthStrategy outgoingContentStrategy) |
Modifier and Type | Method and Description |
---|---|
static ManagedHttpClientConnectionFactory.Builder |
builder()
Create a new
ManagedHttpClientConnectionFactory.Builder . |
ManagedHttpClientConnection |
createConnection(Socket socket) |
public static final ManagedHttpClientConnectionFactory INSTANCE
ManagedHttpClientConnectionFactory
.public ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestWriterFactory, org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory, org.apache.hc.core5.http.ContentLengthStrategy incomingContentStrategy, org.apache.hc.core5.http.ContentLengthStrategy outgoingContentStrategy)
public ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, org.apache.hc.core5.http.io.HttpMessageWriterFactory<org.apache.hc.core5.http.ClassicHttpRequest> requestWriterFactory, org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory)
public ManagedHttpClientConnectionFactory(org.apache.hc.core5.http.config.Http1Config h1Config, org.apache.hc.core5.http.config.CharCodingConfig charCodingConfig, org.apache.hc.core5.http.io.HttpMessageParserFactory<org.apache.hc.core5.http.ClassicHttpResponse> responseParserFactory)
public ManagedHttpClientConnectionFactory()
public ManagedHttpClientConnection createConnection(Socket socket) throws IOException
createConnection
in interface org.apache.hc.core5.http.io.HttpConnectionFactory<ManagedHttpClientConnection>
IOException
public static ManagedHttpClientConnectionFactory.Builder builder()
ManagedHttpClientConnectionFactory.Builder
.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.