java.lang.Object
jakarta.xml.soap.SOAPFactory
com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl
- Direct Known Subclasses:
SOAPFactory1_1Impl,SOAPFactory1_2Impl,SOAPFactoryDynamicImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newDetailobject which serves as a container forDetailEntryobjects.protected abstract SOAPDocumentImplcreateElement(Name name) Creates aSOAPElementobject initialized with the givenNameobject.createElement(String tagName) Creates aSOAPElementobject initialized with the given local name.createElement(String localName, String prefix, String uri) Creates a newSOAPElementobject with the given local name, prefix and uri.createElement(QName qname) Creates aSOAPElementobject initialized with the givenQNameobject.createElement(Element domElement) Creates aSOAPElementobject from an existing DOMElement.Creates a new defaultSOAPFaultobjectcreateFault(String reasonText, QName faultCode) Creates a newSOAPFaultobject initialized with the givenreasonTextandfaultCodecreateName(String localName) Creates a newNameobject initialized with the given local name.createName(String localName, String prefix, String uri) Creates a newNameobject 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:SOAPFactoryCreates aSOAPElementobject initialized with the given local name.- Specified by:
createElementin classSOAPFactory- Parameters:
tagName- aStringgiving the local name for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject
-
createElement
Description copied from class:SOAPFactoryCreates aSOAPElementobject initialized with the givenNameobject. The concrete type of the return value will depend on the name given to the newSOAPElement. For instance, a newSOAPElementwith the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelopethat supports SOAP 1.2 behavior to be created.- Specified by:
createElementin classSOAPFactory- Parameters:
name- aNameobject with the XML name for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject- See Also:
-
createElement
Description copied from class:SOAPFactoryCreates aSOAPElementobject initialized with the givenQNameobject. The concrete type of the return value will depend on the name given to the newSOAPElement. For instance, a newSOAPElementwith the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelopethat supports SOAP 1.2 behavior to be created.- Overrides:
createElementin classSOAPFactory- Parameters:
qname- aQNameobject with the XML name for the new element- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject- See Also:
-
createElement
Description copied from class:SOAPFactoryCreates a newSOAPElementobject 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 newSOAPElementwith the name "{http://www.w3.org/2003/05/soap-envelope}Envelope" would cause aSOAPEnvelopethat supports SOAP 1.2 behavior to be created.- Specified by:
createElementin classSOAPFactory- Parameters:
localName- aStringgiving the local name for the new elementprefix- the prefix for thisSOAPElementuri- aStringgiving the URI of the namespace to which the new element belongs- Returns:
- the new
SOAPElementobject that was created - Throws:
SOAPException- if there is an error in creating theSOAPElementobject
-
createName
Description copied from class:SOAPFactoryCreates a newNameobject initialized with the given local name, namespace prefix, and namespace URI.This factory method creates
Nameobjects for use in situations where it is not practical to use theSOAPEnvelopeabstraction.- Specified by:
createNamein classSOAPFactory- Parameters:
localName- aStringgiving the local nameprefix- aStringgiving the prefix of the namespaceuri- aStringgiving the URI of the namespace- Returns:
- a
Nameobject initialized with the given local name, namespace prefix, and namespace URI - Throws:
SOAPException- if there is a SOAP error
-
createName
Description copied from class:SOAPFactoryCreates a newNameobject initialized with the given local name.This factory method creates
Nameobjects for use in situations where it is not practical to use theSOAPEnvelopeabstraction.- Specified by:
createNamein classSOAPFactory- Parameters:
localName- aStringgiving the local name- Returns:
- a
Nameobject initialized with the given local name - Throws:
SOAPException- if there is a SOAP error
-
createElement
Description copied from class:SOAPFactoryCreates aSOAPElementobject from an existing DOMElement. If the DOMElementthat is passed in as an argument is already aSOAPElementthen this method must return it unmodified without any further work. Otherwise, a newSOAPElementis created and a deep copy is made of thedomElementargument. The concrete type of the return value will depend on the name of thedomElementargument. If any part of the tree rooted indomElementviolates SOAP rules, aSOAPExceptionwill be thrown.- Overrides:
createElementin classSOAPFactory- Parameters:
domElement- theElementto be copied.- Returns:
- a new
SOAPElementthat is a copy ofdomElement. - Throws:
SOAPException- if there is an error in creating theSOAPElementobject
-
createDetail
Description copied from class:SOAPFactoryCreates a newDetailobject which serves as a container forDetailEntryobjects.This factory method creates
Detailobjects for use in situations where it is not practical to use theSOAPFaultabstraction.- Specified by:
createDetailin classSOAPFactory- Returns:
- a
Detailobject - Throws:
SOAPException- if there is a SOAP error
-
createFault
Description copied from class:SOAPFactoryCreates a newSOAPFaultobject initialized with the givenreasonTextandfaultCode- Specified by:
createFaultin classSOAPFactory- Parameters:
reasonText- the ReasonText/FaultString for the faultfaultCode- the FaultCode for the fault- Returns:
- a
SOAPFaultobject - Throws:
SOAPException- if there is a SOAP error
-
createFault
Description copied from class:SOAPFactoryCreates a new defaultSOAPFaultobject- Specified by:
createFaultin classSOAPFactory- Returns:
- a
SOAPFaultobject - Throws:
SOAPException- if there is a SOAP error
-