Package org.apache.cxf.transport.http
Class URLConnectionHTTPConduit
- 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
-
- 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
- Direct Known Subclasses:
HttpClientHTTPConduit
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
Fields Modifier and Type Field Description protected HttpsURLConnectionFactory
connectionFactory
This field holds the connection factory, which primarily is used to factor out SSL specific code from this implementation.static String
HTTPURL_CONNECTION_METHOD_REFLECTION
static String
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 URLConnectionHTTPConduit(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Close the conduitprotected OutputStream
createOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold)
protected void
setupConnection(org.apache.cxf.message.Message message, Address address, 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
-
HTTPURL_CONNECTION_METHOD_REFLECTION
public static final String HTTPURL_CONNECTION_METHOD_REFLECTION
- See Also:
- Constant Field Values
-
SET_REASON_PHRASE_NOT_NULL
public static final String SET_REASON_PHRASE_NOT_NULL
- See Also:
- Constant Field Values
-
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(org.apache.cxf.Bus b, org.apache.cxf.service.model.EndpointInfo ei, org.apache.cxf.ws.addressing.EndpointReferenceType t) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close()
Close the conduit- Specified by:
close
in interfaceorg.apache.cxf.transport.Conduit
- Overrides:
close
in classHTTPConduit
-
setupConnection
protected void setupConnection(org.apache.cxf.message.Message message, Address address, HTTPClientPolicy csPolicy) throws IOException
- Specified by:
setupConnection
in classHTTPConduit
- Throws:
IOException
-
createOutputStream
protected OutputStream createOutputStream(org.apache.cxf.message.Message message, boolean needToCacheRequest, boolean isChunking, int chunkThreshold) throws IOException
- Specified by:
createOutputStream
in classHTTPConduit
- Throws:
IOException
-
-