Apache CXF API

org.apache.cxf.transport.http
Class URLConnectionHTTPConduit

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
All Implemented Interfaces:
PropertyChangeListener, EventListener, Configurable, Assertor, Conduit, Observable
Direct Known Subclasses:
AhcWebSocketConduit, AsyncHTTPConduit, NettyHttpConduit

public class URLConnectionHTTPConduit
extends HTTPConduit


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.transport.http.HTTPConduit
HTTPConduit.InterposedMessageObserver, HTTPConduit.WrappedOutputStream
 
Field Summary
protected  HttpsURLConnectionFactory connectionFactory
          This field holds the connection factory, which primarily is used to factor out SSL specific code from this implementation.
 
Fields inherited from class org.apache.cxf.transport.http.HTTPConduit
authorizationPolicy, authSupplier, bus, certConstraints, clientSidePolicy, cookies, defaultEndpointURI, defaultEndpointURIString, endpointInfo, fromEndpointReferenceType, KEY_HTTP_CONNECTION, 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
URLConnectionHTTPConduit(Bus b, EndpointInfo ei)
           
URLConnectionHTTPConduit(Bus b, EndpointInfo ei, EndpointReferenceType t)
           
 
Method Summary
 void close()
          Close the conduit
protected  OutputStream createOutputStream(Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)
           
protected  void setupConnection(Message message, URI currentURL, 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, 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

connectionFactory

protected HttpsURLConnectionFactory connectionFactory
This field holds the connection factory, which primarily is used to factor out SSL specific code from this implementation.

This field is "protected" to facilitate some contrived UnitTesting so that an extended class may alter its value with an EasyMock URLConnection Factory.

Constructor Detail

URLConnectionHTTPConduit

public URLConnectionHTTPConduit(Bus b,
                                EndpointInfo ei)
                         throws IOException
Throws:
IOException

URLConnectionHTTPConduit

public URLConnectionHTTPConduit(Bus b,
                                EndpointInfo ei,
                                EndpointReferenceType t)
                         throws IOException
Throws:
IOException
Method Detail

close

public void close()
Close the conduit

Specified by:
close in interface Conduit
Overrides:
close in class HTTPConduit

setupConnection

protected void setupConnection(Message message,
                               URI currentURL,
                               HTTPClientPolicy csPolicy)
                        throws IOException
Specified by:
setupConnection in class HTTPConduit
Throws:
IOException

createOutputStream

protected OutputStream createOutputStream(Message message,
                                          boolean needToCacheRequest,
                                          boolean isChunking,
                                          int chunkThreshold)
                                   throws IOException
Specified by:
createOutputStream in class HTTPConduit
Throws:
IOException

Apache CXF API

Apache CXF