javax.xml.soap
Class SOAPConnectionFactory
- java.lang.Object
-
- javax.xml.soap.SOAPConnectionFactory
-
public abstract class SOAPConnectionFactory extends 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.
-
-
Constructor Summary
Constructors Constructor and Description SOAPConnectionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract SOAPConnection
createConnection()
Create a newSOAPConnection
.static SOAPConnectionFactory
newInstance()
Creates an instance of the defaultSOAPConnectionFactory
object.
-
-
-
Method Detail
newInstance
public static SOAPConnectionFactory newInstance() throws SOAPException, UnsupportedOperationException
Creates 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
public abstract SOAPConnection createConnection() throws SOAPException
Create a newSOAPConnection
.- Returns:
-
the new
SOAPConnection
object. - Throws:
-
SOAPException
- if there was an exception creating theSOAPConnection
object.
-
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.