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
Constructors Constructor Description AbstractHTTPConduitFactoryWrapper(org.apache.cxf.transport.http.HTTPConduitFactory delegate)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected 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.HTTPConduitFactorygetDelegate()Returns the HTTPConduitFactory instance that this wrapper delegates to
-
-
-
Method Detail
-
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 IOExceptionCreates 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
-
-