org.apache.cxf.transport.http.netty.client
Class NettyHttpConduit

java.lang.Object
  extended by org.apache.cxf.transport.AbstractObservable
      extended by org.apache.cxf.transport.AbstractConduit
          extended by org.apache.cxf.transport.http.HTTPConduit
              extended by org.apache.cxf.transport.http.URLConnectionHTTPConduit
                  extended by org.apache.cxf.transport.http.netty.client.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.URLConnectionHTTPConduit
implements org.apache.cxf.buslifecycle.BusLifeCycleListener


Nested Class Summary
 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
static String USE_ASYNC
           
 
Fields inherited from class org.apache.cxf.transport.http.URLConnectionHTTPConduit
connectionFactory
 
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit
authorizationPolicy, authSupplier, bus, certConstraints, clientSidePolicy, cookies, defaultEndpointURI, defaultEndpointURIString, endpointInfo, fromEndpointReferenceType, KEY_HTTP_CONNECTION, KEY_HTTP_CONNECTION_ADDRESS, LOG, proxyAuthorizationPolicy, proxyAuthSupplier, proxyFactory, tlsClientParameters, trustDecider
 
Fields inherited from class org.apache.cxf.transport.AbstractConduit
target
 
Fields inherited from class org.apache.cxf.transport.AbstractObservable
incomingObserver
 
Constructor Summary
NettyHttpConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t, NettyHttpConduitFactory conduitFactory)
           
 
Method Summary
protected  OutputStream createOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)
           
 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.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, getURI, isChunkingSupported, 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

USE_ASYNC

public static final String USE_ASYNC
See Also:
Constant Field Values
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

getNettyHttpConduitFactory

public NettyHttpConduitFactory getNettyHttpConduitFactory()

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.URLConnectionHTTPConduit
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.URLConnectionHTTPConduit
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


Apache CXF