Package com.sun.xml.messaging.saaj.soap
Class SOAPFactoryImpl
- java.lang.Object
-
- jakarta.xml.soap.SOAPFactory
-
- com.sun.xml.messaging.saaj.soap.SOAPFactoryImpl
-
- Direct Known Subclasses:
SOAPFactory1_1Impl,SOAPFactory1_2Impl,SOAPFactoryDynamicImpl
public abstract class SOAPFactoryImpl extends SOAPFactory
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSOAPFactoryImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DetailcreateDetail()Creates a newDetailobject which serves as a container forDetailEntryobjects.protected abstract SOAPDocumentImplcreateDocument()SOAPElementcreateElement(Name name)Creates aSOAPElementobject initialized with the givenNameobject.SOAPElementcreateElement(String tagName)Creates aSOAPElementobject initialized with the given local name.SOAPElementcreateElement(String localName, String prefix, String uri)Creates a newSOAPElementobject with the given local name, prefix and uri.SOAPElementcreateElement(QName qname)Creates aSOAPElementobject initialized with the givenQNameobject.SOAPElementcreateElement(Element domElement)Creates aSOAPElementobject from an existing DOMElement.SOAPFaultcreateFault()Creates a new defaultSOAPFaultobjectSOAPFaultcreateFault(String reasonText, QName faultCode)Creates a newSOAPFaultobject initialized with the givenreasonTextandfaultCodeNamecreateName(String localName)Creates a newNameobject initialized with the given local name.NamecreateName(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
-
-
-
-
Method Detail
-
createDocument
protected abstract SOAPDocumentImpl createDocument()
-
createElement
public SOAPElement createElement(String tagName) throws SOAPException
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
public SOAPElement createElement(Name name) throws SOAPException
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:
SOAPFactory.createElement(javax.xml.namespace.QName)
-
createElement
public SOAPElement createElement(QName qname) throws SOAPException
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:
SOAPFactory.createElement(Name)
-
createElement
public SOAPElement createElement(String localName, String prefix, String uri) throws SOAPException
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
public Name createName(String localName, String prefix, String uri) throws SOAPException
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
public Name createName(String localName) throws SOAPException
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
public SOAPElement createElement(Element domElement) throws SOAPException
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
public Detail createDetail() throws SOAPException
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
public SOAPFault createFault(String reasonText, QName faultCode) throws SOAPException
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
public SOAPFault createFault() throws SOAPException
Description copied from class:SOAPFactoryCreates a new defaultSOAPFaultobject- Specified by:
createFaultin classSOAPFactory- Returns:
- a
SOAPFaultobject - Throws:
SOAPException- if there is a SOAP error
-
-