Class AbstractHTTPConduitFactoryWrapper
java.lang.Object
org.jboss.wsf.stack.cxf.client.configuration.AbstractHTTPConduitFactoryWrapper
- All Implemented Interfaces:
org.apache.cxf.transport.http.HTTPConduitFactory
- Direct Known Subclasses:
DefaultHTTPConduitFactoryWrapper
public abstract class AbstractHTTPConduitFactoryWrapper
extends Object
implements org.apache.cxf.transport.http.HTTPConduitFactory
Abstract wrapper over HTTPConduitFactory for configuring HTTPConduit instances with default
values just after they've been created.
This class can be extended to establish and set default HTTPConduit values in different ways.
- Since:
- 1-Apr-2015
- Author:
- alessio.soldano@jboss.com
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractHTTPConduitFactoryWrapper(org.apache.cxf.transport.http.HTTPConduitFactory delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidconfigureConduit(org.apache.cxf.transport.http.HTTPConduit conduit) Configures the specified HTTPConduit instance with default valuesorg.apache.cxf.transport.http.HTTPConduitcreateConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, Bus b, EndpointInfo localInfo, EndpointReferenceType target) protected abstract org.apache.cxf.transport.http.HTTPConduitcreateNewConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, Bus b, EndpointInfo localInfo, EndpointReferenceType target) Creates a new HTTPConduit instance; this is used internally when no delegate is available for getting a HTTPConduit instance to configureorg.apache.cxf.transport.http.HTTPConduitFactoryReturns the HTTPConduitFactory instance that this wrapper delegates to
-
Constructor Details
-
AbstractHTTPConduitFactoryWrapper
public AbstractHTTPConduitFactoryWrapper(org.apache.cxf.transport.http.HTTPConduitFactory delegate)
-
-
Method Details
-
createConduit
public org.apache.cxf.transport.http.HTTPConduit createConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, Bus b, EndpointInfo localInfo, EndpointReferenceType target) throws IOException - Specified by:
createConduitin interfaceorg.apache.cxf.transport.http.HTTPConduitFactory- Throws:
IOException
-
getDelegate
public org.apache.cxf.transport.http.HTTPConduitFactory getDelegate()Returns the HTTPConduitFactory instance that this wrapper delegates to- Returns:
- The wrapper's delegate
-
createNewConduit
protected abstract org.apache.cxf.transport.http.HTTPConduit createNewConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, Bus b, EndpointInfo localInfo, EndpointReferenceType target) throws IOException Creates a new HTTPConduit instance; this is used internally when no delegate is available for getting a HTTPConduit instance to configure- Parameters:
f- The current HTTPTransportFactoryb- The current BuslocalInfo- The current EndpointInfotarget- The EndpointReferenceType- Returns:
- A new HTTPConduit instance
- Throws:
IOException
-
configureConduit
protected abstract void configureConduit(org.apache.cxf.transport.http.HTTPConduit conduit) Configures the specified HTTPConduit instance with default values- Parameters:
conduit- The HTTPConduit instance to be configured
-