FileDocCategorySizeDatePackage
SOAPConnectionFactory.javaAPI DocApache Axis 1.42612Sat Apr 22 18:57:28 BST 2006javax.xml.soap

SOAPConnectionFactory

public abstract class SOAPConnectionFactory extends Object
A factory for creating SOAPConnection objects. Implementation of this class is optional. If SOAPConnectionFactory.newInstance() throws an UnsupportedOperationException then the implementation does not support the SAAJ communication infrastructure. Otherwise SOAPConnection objects can be created by calling createConnection() on the newly created SOAPConnectionFactory object.

Fields Summary
private static final String
DEFAULT_SOAP_CONNECTION_FACTORY
private static final String
SF_PROPERTY
Constructors Summary
public SOAPConnectionFactory()

Methods Summary
public abstract javax.xml.soap.SOAPConnectioncreateConnection()
Create a new SOAPConnection.

return
the new SOAPConnection object.
throws
SOAPException if there was an exception creating the SOAPConnection object.

public static javax.xml.soap.SOAPConnectionFactorynewInstance()
Creates an instance of the default SOAPConnectionFactory object.

return
a new instance of a default SOAPConnectionFactory object
throws
SOAPException if there was an error creating the SOAPConnectionFactory
throws
UnsupportedOperationException if newInstance is not supported.


        try {
            return (SOAPConnectionFactory) FactoryFinder.find(SF_PROPERTY,
                    DEFAULT_SOAP_CONNECTION_FACTORY);
        } catch (Exception exception) {
            throw new SOAPException("Unable to create SOAP connection factory: "
                                    + exception.getMessage());
        }