SAAJMetaFactory (Java Platform SE 8 ) (original) (raw)
- javax.xml.soap.SAAJMetaFactory
public abstract class SAAJMetaFactory
extends Object
The access point for the implementation classes of the factories defined in the SAAJ API. All of the newInstance
methods defined on factories in SAAJ 1.3 defer to instances of this class to do the actual object creation. The implementations of newInstance()
methods (in SOAPFactory and MessageFactory) that existed in SAAJ 1.2 have been updated to also delegate to the SAAJMetaFactory when the SAAJ 1.2 defined lookup fails to locate the Factory implementation class name.
SAAJMetaFactory is a service provider interface. There are no public methods on this class.
Since:
SAAJ 1.3
Constructor Summary
Constructors
Modifier Constructor Description protected SAAJMetaFactory() Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type Method Description protected abstract MessageFactory newMessageFactory(String protocol) Creates a MessageFactory object for the given String protocol. protected abstract SOAPFactory newSOAPFactory(String protocol) Creates a SOAPFactory object for the given String protocol. * ### Methods inherited from class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone--), [equals](../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../java/lang/Object.html#finalize--), [getClass](../../../java/lang/Object.html#getClass--), [hashCode](../../../java/lang/Object.html#hashCode--), [notify](../../../java/lang/Object.html#notify--), [notifyAll](../../../java/lang/Object.html#notifyAll--), [toString](../../../java/lang/Object.html#toString--), [wait](../../../java/lang/Object.html#wait--), [wait](../../../java/lang/Object.html#wait-long-), [wait](../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### SAAJMetaFactory protected SAAJMetaFactory()
Method Detail
* #### newMessageFactory protected abstract [MessageFactory](../../../javax/xml/soap/MessageFactory.html "class in javax.xml.soap") newMessageFactory([String](../../../java/lang/String.html "class in java.lang") protocol) throws [SOAPException](../../../javax/xml/soap/SOAPException.html "class in javax.xml.soap") Creates a `MessageFactory` object for the given `String` protocol. Parameters: `protocol` \- a `String` indicating the protocol Throws: `[SOAPException](../../../javax/xml/soap/SOAPException.html "class in javax.xml.soap")` \- if there is an error in creating the MessageFactory See Also: [SOAPConstants.SOAP\_1\_1\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#SOAP%5F1%5F1%5FPROTOCOL), [SOAPConstants.SOAP\_1\_2\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#SOAP%5F1%5F2%5FPROTOCOL), [SOAPConstants.DYNAMIC\_SOAP\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#DYNAMIC%5FSOAP%5FPROTOCOL) * #### newSOAPFactory protected abstract [SOAPFactory](../../../javax/xml/soap/SOAPFactory.html "class in javax.xml.soap") newSOAPFactory([String](../../../java/lang/String.html "class in java.lang") protocol) throws [SOAPException](../../../javax/xml/soap/SOAPException.html "class in javax.xml.soap") Creates a `SOAPFactory` object for the given `String` protocol. Parameters: `protocol` \- a `String` indicating the protocol Throws: `[SOAPException](../../../javax/xml/soap/SOAPException.html "class in javax.xml.soap")` \- if there is an error in creating the SOAPFactory See Also: [SOAPConstants.SOAP\_1\_1\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#SOAP%5F1%5F1%5FPROTOCOL), [SOAPConstants.SOAP\_1\_2\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#SOAP%5F1%5F2%5FPROTOCOL), [SOAPConstants.DYNAMIC\_SOAP\_PROTOCOL](../../../javax/xml/soap/SOAPConstants.html#DYNAMIC%5FSOAP%5FPROTOCOL)
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.