javax.xml.soap

Class 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.
Constructor Summary
SOAPConnectionFactory()
Method Summary
abstract SOAPConnectioncreateConnection()
Create a new SOAPConnection.
static SOAPConnectionFactorynewInstance()
Creates an instance of the default SOAPConnectionFactory object.

Constructor Detail

SOAPConnectionFactory

public SOAPConnectionFactory()

Method Detail

createConnection

public abstract SOAPConnection createConnection()
Create a new SOAPConnection.

Returns: the new SOAPConnection object.

Throws: SOAPException if there was an exception creating the SOAPConnection object.

newInstance

public static SOAPConnectionFactory newInstance()
Creates an instance of the default SOAPConnectionFactory object.

Returns: a new instance of a default SOAPConnectionFactory object

Throws: SOAPException if there was an error creating the SOAPConnectionFactory UnsupportedOperationException if newInstance is not supported.