Class NettyHttpConduit
- 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.netty.client.NettyHttpConduit
-
- All Implemented Interfaces:
PropertyChangeListener,EventListener,BusLifeCycleListener,Configurable,Assertor,Conduit,Observable
public class NettyHttpConduit extends HttpClientHTTPConduit implements BusLifeCycleListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classNettyHttpConduit.NettyWrappedOutputStream-
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.HTTPConduit
HTTPConduit.InterposedMessageObserver, HTTPConduit.WrappedOutputStream
-
-
Field Summary
Fields Modifier and Type Field Description static StringENABLE_HTTP2Enable HTTP/2 supportstatic StringMAX_RESPONSE_CONTENT_LENGTHstatic 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, 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
-
Fields inherited from class org.apache.cxf.transport.AbstractConduit
target
-
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
-
-
Constructor Summary
Constructors Constructor Description NettyHttpConduit(Bus b, EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, NettyHttpConduitFactory conduitFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OutputStreamcreateOutputStream(Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)protected static intdetermineMaxResponseContentLength(Message message)NettyHttpConduitFactorygetNettyHttpConduitFactory()voidinitComplete()Invoked when theBushas been initialized.voidpostShutdown()Invoked after theBusis shutdown.voidpreShutdown()Invoked before theBusis shutdown.protected voidsetupConnection(Message message, Address address, HTTPClientPolicy csPolicy)-
Methods inherited from class org.apache.cxf.transport.http.URLConnectionHTTPConduit
close
-
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.AbstractConduit
getTarget, toString
-
Methods inherited from class org.apache.cxf.transport.AbstractObservable
activate, deactivate, getMessageObserver, getTargetReference, getTargetReference, setMessageObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.transport.Observable
getMessageObserver, 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
-
MAX_RESPONSE_CONTENT_LENGTH
public static final String MAX_RESPONSE_CONTENT_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NettyHttpConduit
public NettyHttpConduit(Bus b, EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, NettyHttpConduitFactory conduitFactory) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getNettyHttpConduitFactory
public NettyHttpConduitFactory getNettyHttpConduitFactory()
-
setupConnection
protected void setupConnection(Message message, Address address, HTTPClientPolicy csPolicy) throws IOException
- Overrides:
setupConnectionin classHttpClientHTTPConduit- Throws:
IOException
-
createOutputStream
protected OutputStream createOutputStream(Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold) throws IOException
- Overrides:
createOutputStreamin classHttpClientHTTPConduit- Throws:
IOException
-
initComplete
public void initComplete()
Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
initCompletein interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()
Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
postShutdownin interfaceBusLifeCycleListener
-
preShutdown
public void preShutdown()
Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
preShutdownin interfaceBusLifeCycleListener
-
determineMaxResponseContentLength
protected static int determineMaxResponseContentLength(Message message)
-
-