Class NettyHttpConduit

  • All Implemented Interfaces:
    PropertyChangeListener, EventListener, org.apache.cxf.buslifecycle.BusLifeCycleListener, org.apache.cxf.configuration.Configurable, org.apache.cxf.transport.Assertor, org.apache.cxf.transport.Conduit, org.apache.cxf.transport.Observable

    public class NettyHttpConduit
    extends org.apache.cxf.transport.http.HttpClientHTTPConduit
    implements org.apache.cxf.buslifecycle.BusLifeCycleListener
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  NettyHttpConduit.NettyWrappedOutputStream  
      • Nested classes/interfaces inherited from class org.apache.cxf.transport.http.HTTPConduit

        org.apache.cxf.transport.http.HTTPConduit.InterposedMessageObserver, org.apache.cxf.transport.http.HTTPConduit.WrappedOutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ENABLE_HTTP2
      Enable HTTP/2 support
      static String MAX_RESPONSE_CONTENT_LENGTH  
      static String USE_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​(org.apache.cxf.Bus b, org.apache.cxf.service.model.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 OutputStream createOutputStream​(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)  
      protected static int determineMaxResponseContentLength​(org.apache.cxf.message.Message message)  
      NettyHttpConduitFactory getNettyHttpConduitFactory()  
      void initComplete()  
      void postShutdown()  
      void preShutdown()  
      protected void setupConnection​(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.HttpClientHTTPConduit

        close, close
      • Methods inherited from class org.apache.cxf.transport.http.HTTPConduit

        assertMessage, canAssert, 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 interface org.apache.cxf.transport.Observable

        getMessageObserver, setMessageObserver
    • Constructor Detail

      • NettyHttpConduit

        public NettyHttpConduit​(org.apache.cxf.Bus b,
                                org.apache.cxf.service.model.EndpointInfo ei,
                                org.apache.cxf.ws.addressing.EndpointReferenceType t,
                                NettyHttpConduitFactory conduitFactory)
                         throws IOException
        Throws:
        IOException
    • Method Detail

      • 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:
        setupConnection in class org.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:
        createOutputStream in class org.apache.cxf.transport.http.HttpClientHTTPConduit
        Throws:
        IOException
      • initComplete

        public void initComplete()
        Specified by:
        initComplete in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
      • postShutdown

        public void postShutdown()
        Specified by:
        postShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
      • preShutdown

        public void preShutdown()
        Specified by:
        preShutdown in interface org.apache.cxf.buslifecycle.BusLifeCycleListener
      • determineMaxResponseContentLength

        protected static int determineMaxResponseContentLength​(org.apache.cxf.message.Message message)