java.lang.Object
jakarta.xml.soap.SOAPFactory
com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl
- Direct Known Subclasses:
SOAPFactory1_1Impl
,SOAPFactory1_2Impl
,SOAPFactoryDynamicImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newDetail
object which serves as a container forDetailEntry
objects.protected abstract SOAPDocumentImpl
createElement
(Name name) Creates aSOAPElement
object initialized with the givenName
object.createElement
(String tagName) Creates aSOAPElement
object initialized with the given local name.createElement
(String localName, String prefix, String uri) Creates a newSOAPElement
object with the given local name, prefix and uri.createElement
(QName qname) Creates aSOAPElement
object initialized with the givenQName
object.createElement
(Element domElement) Creates aSOAPElement
object from an existing DOMElement
.Creates a new defaultSOAPFault
objectcreateFault
(String reasonText, QName faultCode) Creates a newSOAPFault
object initialized with the givenreasonText
andfaultCode
createName
(String localName) Creates a newName
object initialized with the given local name.createName
(String localName, String prefix, String uri) Creates a newName
object initialized with the given local name, namespace prefix, and namespace URI.Methods inherited from class jakarta.xml.soap.SOAPFactory
newInstance, newInstance
-
Constructor Details
-
SOAPFactoryImpl
protected SOAPFactoryImpl()
-
-
Method Details
-
createDocument
-
createElement
Description copied from class:SOAPFactory
Creates aSOAPElement
object initialized with the given local name.- Specified by:
createElement
in classSOAPFactory
- Parameters:
tagName
- aString
giving the local name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object
-
createElement
Description copied from class:SOAPFactory
Creates aSOAPElement
object initialized with the givenName
object. The concrete type of the return value will depend on the name given to the newSOAPElement
. For instance, a newSOAPElement
with the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelope
that supports SOAP 1.2 behavior to be created.- Specified by:
createElement
in classSOAPFactory
- Parameters:
name
- aName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-
createElement
Description copied from class:SOAPFactory
Creates aSOAPElement
object initialized with the givenQName
object. The concrete type of the return value will depend on the name given to the newSOAPElement
. For instance, a newSOAPElement
with the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelope
that supports SOAP 1.2 behavior to be created.- Overrides:
createElement
in classSOAPFactory
- Parameters:
qname
- aQName
object with the XML name for the new element- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object- See Also:
-
createElement
Description copied from class:SOAPFactory
Creates a newSOAPElement
object with the given local name, prefix and uri. The concrete type of the return value will depend on the name given to the newSOAPElement
. For instance, a newSOAPElement
with the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelope
that supports SOAP 1.2 behavior to be created.- Specified by:
createElement
in classSOAPFactory
- Parameters:
localName
- aString
giving the local name for the new elementprefix
- the prefix for thisSOAPElement
uri
- aString
giving the URI of the namespace to which the new element belongs- Returns:
- the new
SOAPElement
object that was created - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object
-
createName
Description copied from class:SOAPFactory
Creates a newName
object initialized with the given local name, namespace prefix, and namespace URI.This factory method creates
Name
objects for use in situations where it is not practical to use theSOAPEnvelope
abstraction.- Specified by:
createName
in classSOAPFactory
- Parameters:
localName
- aString
giving the local nameprefix
- aString
giving the prefix of the namespaceuri
- aString
giving the URI of the namespace- Returns:
- a
Name
object initialized with the given local name, namespace prefix, and namespace URI - Throws:
SOAPException
- if there is a SOAP error
-
createName
Description copied from class:SOAPFactory
Creates a newName
object initialized with the given local name.This factory method creates
Name
objects for use in situations where it is not practical to use theSOAPEnvelope
abstraction.- Specified by:
createName
in classSOAPFactory
- Parameters:
localName
- aString
giving the local name- Returns:
- a
Name
object initialized with the given local name - Throws:
SOAPException
- if there is a SOAP error
-
createElement
Description copied from class:SOAPFactory
Creates aSOAPElement
object from an existing DOMElement
. If the DOMElement
that is passed in as an argument is already aSOAPElement
then this method must return it unmodified without any further work. Otherwise, a newSOAPElement
is created and a deep copy is made of thedomElement
argument. The concrete type of the return value will depend on the name of thedomElement
argument. If any part of the tree rooted indomElement
violates SOAP rules, aSOAPException
will be thrown.- Overrides:
createElement
in classSOAPFactory
- Parameters:
domElement
- theElement
to be copied.- Returns:
- a new
SOAPElement
that is a copy ofdomElement
. - Throws:
SOAPException
- if there is an error in creating theSOAPElement
object
-
createDetail
Description copied from class:SOAPFactory
Creates a newDetail
object which serves as a container forDetailEntry
objects.This factory method creates
Detail
objects for use in situations where it is not practical to use theSOAPFault
abstraction.- Specified by:
createDetail
in classSOAPFactory
- Returns:
- a
Detail
object - Throws:
SOAPException
- if there is a SOAP error
-
createFault
Description copied from class:SOAPFactory
Creates a newSOAPFault
object initialized with the givenreasonText
andfaultCode
- Specified by:
createFault
in classSOAPFactory
- Parameters:
reasonText
- the ReasonText/FaultString for the faultfaultCode
- the FaultCode for the fault- Returns:
- a
SOAPFault
object - Throws:
SOAPException
- if there is a SOAP error
-
createFault
Description copied from class:SOAPFactory
Creates a new defaultSOAPFault
object- Specified by:
createFault
in classSOAPFactory
- Returns:
- a
SOAPFault
object - Throws:
SOAPException
- if there is a SOAP error
-