Class 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 Detail

      • AbstractHTTPConduitFactoryWrapper

        public AbstractHTTPConduitFactoryWrapper​(org.apache.cxf.transport.http.HTTPConduitFactory delegate)
    • 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:
        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