Package jakarta.xml.soap
Class SOAPConnectionFactory
- java.lang.Object
-
- jakarta.xml.soap.SOAPConnectionFactory
-
public abstract class SOAPConnectionFactory extends Object
A factory for creatingSOAPConnectionobjects. Implementation of this class is optional. IfSOAPConnectionFactory.newInstance()throws an UnsupportedOperationException then the implementation does not support the SAAJ communication infrastructure. OtherwiseSOAPConnectionobjects can be created by callingcreateConnection()on the newly createdSOAPConnectionFactoryobject.- Since:
- 1.6
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSOAPConnectionFactory()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SOAPConnectioncreateConnection()Create a newSOAPConnection.static SOAPConnectionFactorynewInstance()Creates an instance of the defaultSOAPConnectionFactoryobject.
-
-
-
Method Detail
-
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationException
Creates an instance of the defaultSOAPConnectionFactoryobject. This method uses the lookup procedure specified injakarta.xml.soapto locate and load theSOAPConnectionFactoryclass.- Returns:
- a new instance of a default
SOAPConnectionFactoryobject - Throws:
SOAPException- if there was an error creating theSOAPConnectionFactoryUnsupportedOperationException- if newInstance is not supported.
-
createConnection
public abstract SOAPConnection createConnection() throws SOAPException
Create a newSOAPConnection.- Returns:
- the new
SOAPConnectionobject. - Throws:
SOAPException- if there was an exception creating theSOAPConnectionobject.
-
-