Package org.apache.xmlbeans.impl.soap
Class SOAPConnectionFactory
java.lang.Object
org.apache.xmlbeans.impl.soap.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
Constructors Constructor Description SOAPConnectionFactory()
-
Method Summary
Modifier and Type Method Description abstract SOAPConnection
createConnection()
Create a newSOAPConnection
.static SOAPConnectionFactory
newInstance()
Creates an instance of the defaultSOAPConnectionFactory
object.
-
Constructor Details
-
SOAPConnectionFactory
public SOAPConnectionFactory()
-
-
Method Details
-
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationExceptionCreates an instance of the defaultSOAPConnectionFactory
object.- 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.
-