public class SAAJConverterImpl extends Object implements SAAJConverter
| Modifier and Type | Class and Description |
|---|---|
protected class |
SAAJConverterImpl.NameCreator
A Name can be created from either a SOAPEnvelope or SOAPFactory.
|
OM_ATTRIBUTE_KEY| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributes(SAAJConverterImpl.NameCreator nc,
javax.xml.soap.SOAPElement element,
javax.xml.stream.XMLStreamReader reader)
add attributes
|
protected javax.xml.soap.SOAPElement |
buildSOAPTree(SAAJConverterImpl.NameCreator nc,
javax.xml.soap.SOAPElement root,
javax.xml.soap.SOAPElement parent,
javax.xml.stream.XMLStreamReader reader,
boolean quitAtBody)
Build SOAPTree Either the root or the parent is null.
|
protected javax.xml.soap.SOAPElement |
createElement(javax.xml.soap.SOAPElement parent,
QName qName)
Create child SOAPElement
|
protected javax.xml.soap.SOAPElement |
createElementFromTag(SAAJConverterImpl.NameCreator nc,
javax.xml.soap.SOAPElement parent,
javax.xml.stream.XMLStreamReader reader)
Create SOAPElement from the current tag data
|
javax.xml.soap.MessageFactory |
createMessageFactory(String namespace)
Creates a MessageFactory that can support the SOAP version identified
by the specified envelope namespace.
|
org.apache.axiom.om.OMElement |
toOM(javax.xml.soap.SOAPElement soapElement)
Convert SOAPElement into an OMElement
|
org.apache.axiom.soap.SOAPEnvelope |
toOM(javax.xml.soap.SOAPEnvelope saajEnvelope)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
|
org.apache.axiom.soap.SOAPEnvelope |
toOM(javax.xml.soap.SOAPEnvelope saajEnvelope,
org.apache.axiom.attachments.Attachments attachments)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
|
javax.xml.soap.SOAPElement |
toSAAJ(org.apache.axiom.om.OMElement omElement,
javax.xml.soap.SOAPElement parent)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.
|
javax.xml.soap.SOAPElement |
toSAAJ(org.apache.axiom.om.OMElement omElement,
javax.xml.soap.SOAPElement parent,
javax.xml.soap.SOAPFactory sf)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.
|
javax.xml.soap.SOAPEnvelope |
toSAAJ(org.apache.axiom.soap.SOAPEnvelope omEnvelope)
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope
|
protected void |
updateTagData(SAAJConverterImpl.NameCreator nc,
javax.xml.soap.SOAPElement element,
javax.xml.stream.XMLStreamReader reader,
boolean newElement)
update the tag data of the SOAPElement
|
public javax.xml.soap.SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omEnvelope) throws javax.xml.ws.WebServiceException
SAAJConvertertoSAAJ in interface SAAJConverterjavax.xml.ws.WebServiceExceptionpublic org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope)
SAAJConvertertoOM in interface SAAJConverterpublic org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments) throws javax.xml.ws.WebServiceException
SAAJConvertertoOM in interface SAAJConverterjavax.xml.ws.WebServiceExceptionpublic org.apache.axiom.om.OMElement toOM(javax.xml.soap.SOAPElement soapElement) throws javax.xml.ws.WebServiceException
SAAJConvertertoOM in interface SAAJConverterjavax.xml.ws.WebServiceExceptionpublic javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, javax.xml.soap.SOAPElement parent) throws javax.xml.ws.WebServiceException
SAAJConvertertoSAAJ in interface SAAJConverterparent - SOAPElementjavax.xml.ws.WebServiceExceptionSAAJConverter.toSAAJ(OMElement, SOAPElement, SOAPFactory)public javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, javax.xml.soap.SOAPElement parent, javax.xml.soap.SOAPFactory sf) throws javax.xml.ws.WebServiceException
SAAJConvertertoSAAJ in interface SAAJConverterparent - SOAPElementsf - SOAPFactory that is used to create Name objectsjavax.xml.ws.WebServiceException - * @see toSAAJ(OMElement, SOAPElement)protected javax.xml.soap.SOAPElement buildSOAPTree(SAAJConverterImpl.NameCreator nc, javax.xml.soap.SOAPElement root, javax.xml.soap.SOAPElement parent, javax.xml.stream.XMLStreamReader reader, boolean quitAtBody) throws javax.xml.ws.WebServiceException
nc - NameCreatorroot - SOAPElement (the element that represents the data in the reader)parent - (the parent of the element represented by the reader)reader - XMLStreamReader. the first START_ELEMENT matches the rootquitAtBody - - true if quit reading after the body START_ELEMENTjavax.xml.ws.WebServiceExceptionprotected javax.xml.soap.SOAPElement createElementFromTag(SAAJConverterImpl.NameCreator nc, javax.xml.soap.SOAPElement parent, javax.xml.stream.XMLStreamReader reader) throws javax.xml.soap.SOAPException
nc - NameCreatorparent - SOAPElement for the new SOAPElementreader - XMLStreamReader whose cursor is at the START_ELEMENTjavax.xml.soap.SOAPExceptionprotected javax.xml.soap.SOAPElement createElement(javax.xml.soap.SOAPElement parent, QName qName) throws javax.xml.soap.SOAPException
parent - SOAPElementname - Namejavax.xml.soap.SOAPExceptionprotected void updateTagData(SAAJConverterImpl.NameCreator nc, javax.xml.soap.SOAPElement element, javax.xml.stream.XMLStreamReader reader, boolean newElement) throws javax.xml.soap.SOAPException
NameCreator - ncelement - SOAPElementreader - XMLStreamReader whose cursor is at START_ELEMENTjavax.xml.soap.SOAPExceptionprotected void addAttributes(SAAJConverterImpl.NameCreator nc, javax.xml.soap.SOAPElement element, javax.xml.stream.XMLStreamReader reader) throws javax.xml.soap.SOAPException
NameCreator - ncelement - SOAPElement which is the target of the new attributesreader - XMLStreamReader whose cursor is at START_ELEMENTjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.MessageFactory createMessageFactory(String namespace) throws javax.xml.soap.SOAPException, javax.xml.ws.WebServiceException
SAAJConvertercreateMessageFactory in interface SAAJConverterjavax.xml.ws.WebServiceException - if the namespace is SOAP 1.2 and the SAAJ does not support
SOAP 1.2 or the namespace is unknown.javax.xml.soap.SOAPExceptionCopyright © 2004–2015 The Apache Software Foundation. All rights reserved.