FileDocCategorySizeDatePackage
TransportClientPropertiesFactory.javaAPI DocApache Axis 1.41834Sat Apr 22 18:57:28 BST 2006org.apache.axis.components.net

TransportClientPropertiesFactory

public class TransportClientPropertiesFactory extends Object
author
Richard A. Sitze

Fields Summary
protected static Log
log
private static HashMap
cache
private static HashMap
defaults
Constructors Summary
Methods Summary
public static TransportClientPropertiescreate(java.lang.String protocol)

    
     
        defaults.put("http", DefaultHTTPTransportClientProperties.class);
        defaults.put("https", DefaultHTTPSTransportClientProperties.class);
    
        TransportClientProperties tcp =
            (TransportClientProperties)cache.get(protocol);
        
        if (tcp == null) {
            tcp = (TransportClientProperties)
                AxisProperties.newInstance(TransportClientProperties.class,
                                           (Class)defaults.get(protocol));

            if (tcp != null) {
                cache.put(protocol, tcp);
            }
        }
        
        return tcp;