- java.lang.Object
-
- jakarta.xml.soap.SOAPConnectionFactory
-
public abstract class SOAPConnectionFactory extends java.lang.Object
A factory for creatingSOAPConnection
objects. Implementation of this class is optional. IfSOAPConnectionFactory.newInstance()
throws an UnsupportedOperationException then the implementation does not support the SAAJ communication infrastructure. OtherwiseSOAPConnection
objects can be created by callingcreateConnection()
on the newly createdSOAPConnectionFactory
object.- Since:
- 1.6
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
DEFAULT_SOAP_CONNECTION_FACTORY
A constant representing the default value for aSOAPConnection
object.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SOAPConnectionFactory()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SOAPConnection
createConnection()
Create a newSOAPConnection
.static SOAPConnectionFactory
newInstance()
Creates an instance of the defaultSOAPConnectionFactory
object.
-
-
-
Field Detail
-
DEFAULT_SOAP_CONNECTION_FACTORY
private static final java.lang.String DEFAULT_SOAP_CONNECTION_FACTORY
A constant representing the default value for aSOAPConnection
object. The default is the point-to-point SOAP connection.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, java.lang.UnsupportedOperationException
Creates 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
java.lang.UnsupportedOperationException
- if newInstance is not supported.
-
createConnection
public abstract SOAPConnection createConnection() throws SOAPException
Create a newSOAPConnection
.- Returns:
- the new
SOAPConnection
object. - Throws:
SOAPException
- if there was an exception creating theSOAPConnection
object.
-
-