SOAPFactory is a factory for creating various objects
that exist in the SOAP XML tree.
SOAPFactory can be
used to create XML fragments that will eventually end up in the
SOAP part. These fragments can be inserted as children of the
SOAPHeaderElement or SOAPBodyElement or
SOAPEnvelope or other SOAPElement objects.
SOAPFactory also has methods to create
javax.xml.soap.Detail objects as well as
java.xml.soap.Name objects.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | DEFAULT_SOAP_FACTORY
Class name of default |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Detail | Returns: aDetail objectCreates a new |
| public SOAPElement | Returns: a newSOAPElement that is a copy of domElement.the domElement)Element to be copied.Creates a |
| public abstract SOAPElement | Returns: the newSOAPElement object that was
createda name)Name object with the XML name for
the new elementCreates a |
| public SOAPElement | Returns: the newSOAPElement object that was
createda qname)QName object with the XML name for
the new elementCreates a |
| public abstract SOAPElement | Returns: the newSOAPElement object that was
createda localName)String giving the local name for
the new elementCreates a |
| public abstract SOAPElement | Returns: the newSOAPElement object that was
createda localName, String String giving the local name
for the new elementthe prefix for this prefix, String SOAPElementa uri)String giving the URI of the
namespace to which the new element belongsCreates a new |
| public abstract SOAPFault | Returns: aSOAPFault objectthe ReasonText/FaultString for the fault reasonText, QName the FaultCode for the fault faultCode)Creates a new |
| public abstract SOAPFault | |
| public abstract Name | Returns: aName object initialized with the given
local name, namespace prefix, and namespace URIa localName, String String giving the local namea prefix, String String giving the prefix of the namespacea uri)String giving the URI of the namespaceCreates a new |
| public abstract Name | Returns: aName object initialized with the given
local namea localName)String giving the local nameCreates a new |
| public static SOAPFactory | Returns: a new instance of aSOAPFactoryCreates a new |
| public static SOAPFactory | Returns: a new instance of aSOAPFactorya string constant representing the protocol of the
specified SOAP factory implementation. May be
either protocol)DYNAMIC_SOAP_PROTOCOL,
DEFAULT_SOAP_PROTOCOL (which is the same
as) SOAP_1_1_PROTOCOL, or
SOAP_1_2_PROTOCOL.Creates a new |
| DEFAULT_SOAP_FACTORY | back to summary |
|---|---|
| private static final String DEFAULT_SOAP_FACTORY Class name of default | |
| SOAPFactory | back to summary |
|---|---|
| public SOAPFactory() | |
| createDetail | back to summary |
|---|---|
| public abstract Detail createDetail() throws SOAPException Creates a new
This factory method creates
| |
| createElement | back to summary |
|---|---|
| public SOAPElement createElement(Element domElement) throws SOAPException Creates a
| |
| createElement | back to summary |
|---|---|
| public abstract SOAPElement createElement(Name name) throws SOAPException Creates a
| |
| createElement | back to summary |
|---|---|
| public SOAPElement createElement(QName qname) throws SOAPException Creates a
| |
| createElement | back to summary |
|---|---|
| public abstract SOAPElement createElement(String localName) throws SOAPException Creates a
| |
| createElement | back to summary |
|---|---|
| public abstract SOAPElement createElement(String localName, String prefix, String uri) throws SOAPException Creates a new
| |
| createFault | back to summary |
|---|---|
| public abstract SOAPFault createFault(String reasonText, QName faultCode) throws SOAPException Creates a new
| |
| createFault | back to summary |
|---|---|
| public abstract SOAPFault createFault() throws SOAPException Creates a new default
| |
| createName | back to summary |
|---|---|
| public abstract Name createName(String localName, String prefix, String uri) throws SOAPException Creates a new
This factory method creates
| |
| createName | back to summary |
|---|---|
| public abstract Name createName(String localName) throws SOAPException Creates a new
This factory method creates
| |
| newInstance | back to summary |
|---|---|
| public static SOAPFactory newInstance() throws SOAPException Creates a new
| |
| newInstance | back to summary |
|---|---|
| public static SOAPFactory newInstance(String protocol) throws SOAPException Creates a new
| |