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 SOAPConnectioncreateConnection()Create a newSOAPConnection.static SOAPConnectionFactorynewInstance()Creates an instance of the defaultSOAPConnectionFactoryobject.
-
Constructor Details
-
SOAPConnectionFactory
public SOAPConnectionFactory()
-
-
Method Details
-
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationExceptionCreates an instance of the defaultSOAPConnectionFactoryobject.- Returns:
- a new instance of a default
SOAPConnectionFactoryobject - Throws:
SOAPException- if there was an error creating theSOAPConnectionFactoryUnsupportedOperationException- if newInstance is not supported.
-
createConnection
Create a newSOAPConnection.- Returns:
- the new
SOAPConnectionobject. - Throws:
SOAPException- if there was an exception creating theSOAPConnectionobject.
-