java.lang.Object
jakarta.xml.soap.SOAPConnectionFactory
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract SOAPConnection
Create a newSOAPConnection
.static SOAPConnectionFactory
Creates an instance of the defaultSOAPConnectionFactory
object.
-
Constructor Details
-
SOAPConnectionFactory
protected SOAPConnectionFactory()Default constructor.
-
-
Method Details
-
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationExceptionCreates an instance of the defaultSOAPConnectionFactory
object. This method uses the lookup procedure specified injakarta.xml.soap
to locate and load theSOAPConnectionFactory
class.- Returns:
- a new instance of a default
SOAPConnectionFactory
object - Throws:
SOAPException
- if there was an error creating theSOAPConnectionFactory
UnsupportedOperationException
- if newInstance is not supported.
-
createConnection
Create a newSOAPConnection
.- Returns:
- the new
SOAPConnection
object. - Throws:
SOAPException
- if there was an exception creating theSOAPConnection
object.
-