Apache CXF API

org.apache.cxf.transport.http.osgi
Class HTTPTransportActivator

java.lang.Object
  extended by org.apache.cxf.transport.http.osgi.HTTPTransportActivator
All Implemented Interfaces:
HTTPConduitConfigurer

public class HTTPTransportActivator
extends Object
implements HTTPConduitConfigurer

This class registers a HTTPConduitConfigurer that will pull information from the config:admin service to configure conduits. With the Felix file based impl, the format for that would be in files named org.apache.cxf.http.conduits-XYZ.cfg that has a list of properties like: url: Regex url to match the configuration order: Integer order in which to apply the regex's when multiple regex's match. client.* tlsClientParameters.* proxyAuthorization.* authorization.* Where each of those is a prefix for the attributes that would be on the elements of the http:conduit configuration defined at: http://cxf.apache.org/schemas/configuration/http-conf.xsd For example: client.ReceiveTimeout: 1000 authorization.Username: Foo tlsClientParameters.keyManagers.keyStore.file: mykeys.jks etc....


Field Summary
static String FACTORY_PID
           
 
Constructor Summary
HTTPTransportActivator()
           
 
Method Summary
 void configure(String name, String address, HTTPConduit c)
           
 void deleted(String pid)
           
 String getName()
           
 void start(BundleContext context)
           
 void stop(BundleContext context)
           
 void updated(String pid, Dictionary properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_PID

public static final String FACTORY_PID
See Also:
Constant Field Values
Constructor Detail

HTTPTransportActivator

public HTTPTransportActivator()
Method Detail

start

public void start(BundleContext context)
           throws Exception
Throws:
Exception

stop

public void stop(BundleContext context)
          throws Exception
Throws:
Exception

getName

public String getName()

updated

public void updated(String pid,
                    Dictionary properties)
             throws ConfigurationException
Throws:
ConfigurationException

deleted

public void deleted(String pid)

configure

public void configure(String name,
                      String address,
                      HTTPConduit c)
Specified by:
configure in interface HTTPConduitConfigurer

Apache CXF API

Apache CXF