- java.lang.Object
-
- javax.xml.soap.SOAPConnectionFactory
-
public abstract class SOAPConnectionFactory extends java.lang.ObjectA 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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDEFAULT_SOAP_CONNECTION_FACTORYA constant representing the default value for aSOAPConnectionobject.
-
Constructor Summary
Constructors Constructor Description SOAPConnectionFactory()
-
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.
-
-
-
Field Detail
-
DEFAULT_SOAP_CONNECTION_FACTORY
private static final java.lang.String DEFAULT_SOAP_CONNECTION_FACTORY
A constant representing the default value for aSOAPConnectionobject. 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 defaultSOAPConnectionFactoryobject. This method uses the lookup procedure specified injavax.xml.soapto locate and load theSOAPConnectionFactoryclass.- Returns:
- a new instance of a default
SOAPConnectionFactoryobject - Throws:
SOAPException- if there was an error creating theSOAPConnectionFactoryjava.lang.UnsupportedOperationException- 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.
-
-