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

    Modifier and Type
    Method
    Description
    protected abstract void
    configureConduit(org.apache.cxf.transport.http.HTTPConduit conduit)
    Configures the specified HTTPConduit instance with default values
    org.apache.cxf.transport.http.HTTPConduit
    createConduit(org.apache.cxf.transport.http.HTTPTransportFactory f, Bus b, EndpointInfo localInfo, EndpointReferenceType target)
     
    protected abstract org.apache.cxf.transport.http.HTTPConduit
    createNewConduit(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 configure
    org.apache.cxf.transport.http.HTTPConduitFactory
    Returns the HTTPConduitFactory instance that this wrapper delegates to

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      createConduit in interface org.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 HTTPTransportFactory
      b - The current Bus
      localInfo - The current EndpointInfo
      target - 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