Class AsyncHTTPConduit
- java.lang.Object
-
- org.apache.cxf.transport.AbstractObservable
-
- org.apache.cxf.transport.AbstractConduit
-
- org.apache.cxf.transport.http.HTTPConduit
-
- org.apache.cxf.transport.http.URLConnectionHTTPConduit
-
- org.apache.cxf.transport.http.HttpClientHTTPConduit
-
- org.apache.cxf.transport.http.asyncclient.hc5.AsyncHTTPConduit
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener,org.apache.cxf.configuration.Configurable,org.apache.cxf.transport.Assertor,org.apache.cxf.transport.Conduit,org.apache.cxf.transport.Observable
public class AsyncHTTPConduit extends org.apache.cxf.transport.http.HttpClientHTTPConduitAsync HTTP Conduit using Apache HttpClient 5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAsyncHTTPConduit.AsyncWrappedOutputStream
-
Field Summary
Fields Modifier and Type Field Description static StringENABLE_HTTP2Enable HTTP/2 supportstatic StringUSE_ASYNC-
Fields inherited from class org.apache.cxf.transport.http.URLConnectionHTTPConduit
connectionFactory, HTTPURL_CONNECTION_METHOD_REFLECTION, SET_REASON_PHRASE_NOT_NULL
-
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit
authorizationPolicy, authSupplier, bus, certConstraints, clientSidePolicy, cookies, defaultAddress, endpointInfo, FORCE_HTTP_VERSION, fromEndpointReferenceType, HTTP_RESPONSE_MESSAGE, HTTP_VERSION, KEY_HTTP_CONNECTION, KEY_HTTP_CONNECTION_ADDRESS, KNOWN_HTTP_VERBS_WITH_NO_CONTENT, LOG, NO_IO_EXCEPTIONS, PROCESS_FAULT_ON_HTTP_400, proxyAuthorizationPolicy, proxyAuthSupplier, proxyFactory, SERVICE_NOT_AVAILABLE_ON_HTTP_STATUS_CODES, SET_HTTP_RESPONSE_MESSAGE, tlsClientParameters, trustDecider
-
-
Constructor Summary
Constructors Constructor Description AsyncHTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, AsyncHTTPConduitFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected OutputStreamcreateOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)AsyncHTTPConduitFactorygetAsyncHTTPConduitFactory()org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClientgetHttpAsyncClient(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy)SSLContextgetSSLContext(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters)voidinitializeSSLEngine(SSLContext sslcontext, SSLEngine sslengine)protected voidsetupConnection(org.apache.cxf.message.Message message, org.apache.cxf.transport.http.Address address, org.apache.cxf.transports.http.configuration.HTTPClientPolicy csPolicy)-
Methods inherited from class org.apache.cxf.transport.http.HTTPConduit
assertMessage, canAssert, close, determineConnectionTimeout, determineReceiveTimeout, extractLocation, finalizeConfig, getAddress, getAuthorization, getAuthSupplier, getBeanName, getClient, getClient, getConduitName, getCookies, getEffectiveAuthPolicy, getLogger, getProxyAuthorization, getProxyAuthSupplier, getTlsClientParameters, getTrustDecider, getURI, isChunkingSupported, logStackTrace, prepare, propertyChange, setAuthorization, setAuthSupplier, setClient, setHeadersByAuthorizationPolicy, setProxyAuthorization, setProxyAuthSupplier, setTlsClientParameters, setTrustDecider
-
Methods inherited from class org.apache.cxf.transport.AbstractObservable
activate, deactivate, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
-
-
-
-
Field Detail
-
ENABLE_HTTP2
public static final String ENABLE_HTTP2
Enable HTTP/2 support- See Also:
- Constant Field Values
-
USE_ASYNC
public static final String USE_ASYNC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AsyncHTTPConduit
public AsyncHTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, AsyncHTTPConduitFactory factory) throws IOException- Throws:
IOException
-
-
Method Detail
-
getHttpAsyncClient
public org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient getHttpAsyncClient(org.apache.hc.core5.http.nio.ssl.TlsStrategy tlsStrategy) throws IOException- Throws:
IOException
-
getAsyncHTTPConduitFactory
public AsyncHTTPConduitFactory getAsyncHTTPConduitFactory()
-
setupConnection
protected void setupConnection(org.apache.cxf.message.Message message, org.apache.cxf.transport.http.Address address, org.apache.cxf.transports.http.configuration.HTTPClientPolicy csPolicy) throws IOException- Overrides:
setupConnectionin classorg.apache.cxf.transport.http.HttpClientHTTPConduit- Throws:
IOException
-
createOutputStream
protected OutputStream createOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold) throws IOException
- Overrides:
createOutputStreamin classorg.apache.cxf.transport.http.HttpClientHTTPConduit- Throws:
IOException
-
getSSLContext
public SSLContext getSSLContext(org.apache.cxf.configuration.jsse.TLSClientParameters tlsClientParameters) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
initializeSSLEngine
public void initializeSSLEngine(SSLContext sslcontext, SSLEngine sslengine)
-
close
public void close()
- Specified by:
closein interfaceorg.apache.cxf.transport.Conduit- Overrides:
closein classorg.apache.cxf.transport.http.URLConnectionHTTPConduit
-
-