Top Description Fields Constructors Methods
jakarta.xml.soap

public abstract Class SOAPConnectionFactory

extends Object
Class Inheritance

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.
Since
1.6

Field Summary

Modifier and TypeField and Description
private static final String
DEFAULT_SOAP_CONNECTION_FACTORY

A constant representing the default value for a SOAPConnection object.

Constructor Summary

AccessConstructor and Description
protected
SOAPConnectionFactory()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public abstract SOAPConnection

Returns:

the new SOAPConnection object.
createConnection
()

Create a new SOAPConnection.

public static SOAPConnectionFactory

Returns:

a new instance of a default SOAPConnectionFactory object
newInstance
()

Creates an instance of the default SOAPConnectionFactory object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_SOAP_CONNECTION_FACTORYback to summary
private static final String DEFAULT_SOAP_CONNECTION_FACTORY

A constant representing the default value for a SOAPConnection object. The default is the point-to-point SOAP connection.

Constructor Detail

SOAPConnectionFactoryback to summary
protected SOAPConnectionFactory()

Default constructor.

Method Detail

createConnectionback to summary
public abstract SOAPConnection createConnection() throws SOAPException

Create a new SOAPConnection.

Returns:SOAPConnection

the new SOAPConnection object.

Exceptions
SOAPException:
if there was an exception creating the SOAPConnection object.
newInstanceback to summary
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationException

Creates an instance of the default SOAPConnectionFactory object. This method uses the lookup procedure specified in jakarta.xml.soap to locate and load the jakarta.xml.soap.SOAPConnectionFactory class.

Returns:SOAPConnectionFactory

a new instance of a default SOAPConnectionFactory object

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