|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.soap.SAAJMetaFactory
public abstract class SAAJMetaFactory
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.
Constructor Summary | |
---|---|
protected |
SAAJMetaFactory()
|
Method Summary | |
---|---|
(package private) static SAAJMetaFactory |
getInstance()
Creates a new instance of a concrete SAAJMetaFactory object. |
protected abstract MessageFactory |
newMessageFactory(java.lang.String protocol)
Creates a MessageFactory object for
the given String protocol. |
protected abstract SOAPFactory |
newSOAPFactory(java.lang.String protocol)
Creates a SOAPFactory object for
the given String protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SAAJMetaFactory()
Method Detail |
---|
static SAAJMetaFactory getInstance() throws SOAPException
SAAJMetaFactory
object.
The SAAJMetaFactory is an SPI, it pulls the creation of the other factories together into a
single place. Changing out the SAAJMetaFactory has the effect of changing out the entire SAAJ
implementation. Service providers provide the name of their SAAJMetaFactory
implementation.
This method uses the following ordered lookup procedure to determine the SAAJMetaFactory implementation class to load:
SAAJMetaFactory
object
SOAPException
- if there is an error in creating the SAAJMetaFactory
protected abstract MessageFactory newMessageFactory(java.lang.String protocol) throws SOAPException
MessageFactory
object for
the given String
protocol.
protocol
- a String
indicating the protocol
SOAPException
- if there is an error in creating the
MessageFactorySOAPConstants.SOAP_1_1_PROTOCOL
,
SOAPConstants.SOAP_1_2_PROTOCOL
,
SOAPConstants.DYNAMIC_SOAP_PROTOCOL
protected abstract SOAPFactory newSOAPFactory(java.lang.String protocol) throws SOAPException
SOAPFactory
object for
the given String
protocol.
protocol
- a String
indicating the protocol
SOAPException
- if there is an error in creating the
SOAPFactorySOAPConstants.SOAP_1_1_PROTOCOL
,
SOAPConstants.SOAP_1_2_PROTOCOL
,
SOAPConstants.DYNAMIC_SOAP_PROTOCOL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |