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,
SOAPElement element,
XMLStreamReader reader)
add attributes
|
protected SOAPElement |
buildSOAPTree(SAAJConverterImpl.NameCreator nc,
SOAPElement root,
SOAPElement parent,
XMLStreamReader reader,
boolean quitAtBody)
Build SOAPTree Either the root or the parent is null.
|
protected SOAPElement |
createElement(SOAPElement parent,
QName qName)
Create child SOAPElement
|
protected SOAPElement |
createElementFromTag(SAAJConverterImpl.NameCreator nc,
SOAPElement parent,
XMLStreamReader reader)
Create SOAPElement from the current tag data
|
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(SOAPElement soapElement)
Convert SOAPElement into an OMElement
|
org.apache.axiom.soap.SOAPEnvelope |
toOM(SOAPEnvelope saajEnvelope)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
|
org.apache.axiom.soap.SOAPEnvelope |
toOM(SOAPEnvelope saajEnvelope,
org.apache.axiom.attachments.Attachments attachments)
Convert SAAJ SOAPEnvelope to OM SOAPEnvelope
|
SOAPElement |
toSAAJ(org.apache.axiom.om.OMElement omElement,
SOAPElement parent)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.
|
SOAPElement |
toSAAJ(org.apache.axiom.om.OMElement omElement,
SOAPElement parent,
SOAPFactory sf)
Convert omElement into a SOAPElement and add it to the parent SOAPElement.
|
SOAPEnvelope |
toSAAJ(org.apache.axiom.soap.SOAPEnvelope omEnvelope)
Convert OM SOAPEnvleope to SAAJ SOAPEnvelope
|
protected void |
updateTagData(SAAJConverterImpl.NameCreator nc,
SOAPElement element,
XMLStreamReader reader,
boolean newElement)
update the tag data of the SOAPElement
|
public SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omEnvelope) throws WebServiceException
SAAJConverter
toSAAJ
in interface SAAJConverter
WebServiceException
public org.apache.axiom.soap.SOAPEnvelope toOM(SOAPEnvelope saajEnvelope)
SAAJConverter
toOM
in interface SAAJConverter
public org.apache.axiom.soap.SOAPEnvelope toOM(SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments) throws WebServiceException
SAAJConverter
toOM
in interface SAAJConverter
WebServiceException
public org.apache.axiom.om.OMElement toOM(SOAPElement soapElement) throws WebServiceException
SAAJConverter
toOM
in interface SAAJConverter
WebServiceException
public SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent) throws WebServiceException
SAAJConverter
toSAAJ
in interface SAAJConverter
parent
- SOAPElementWebServiceException
SAAJConverter.toSAAJ(OMElement, SOAPElement, SOAPFactory)
public SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, SOAPElement parent, SOAPFactory sf) throws WebServiceException
SAAJConverter
toSAAJ
in interface SAAJConverter
parent
- SOAPElementsf
- SOAPFactory that is used to create Name objectsWebServiceException
- * @see toSAAJ(OMElement, SOAPElement)protected SOAPElement buildSOAPTree(SAAJConverterImpl.NameCreator nc, SOAPElement root, SOAPElement parent, XMLStreamReader reader, boolean quitAtBody) throws 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_ELEMENTWebServiceException
protected SOAPElement createElementFromTag(SAAJConverterImpl.NameCreator nc, SOAPElement parent, XMLStreamReader reader) throws SOAPException
nc
- NameCreatorparent
- SOAPElement for the new SOAPElementreader
- XMLStreamReader whose cursor is at the START_ELEMENTSOAPException
protected SOAPElement createElement(SOAPElement parent, QName qName) throws SOAPException
parent
- SOAPElementname
- NameSOAPException
protected void updateTagData(SAAJConverterImpl.NameCreator nc, SOAPElement element, XMLStreamReader reader, boolean newElement) throws SOAPException
NameCreator
- ncelement
- SOAPElementreader
- XMLStreamReader whose cursor is at START_ELEMENTSOAPException
protected void addAttributes(SAAJConverterImpl.NameCreator nc, SOAPElement element, XMLStreamReader reader) throws SOAPException
NameCreator
- ncelement
- SOAPElement which is the target of the new attributesreader
- XMLStreamReader whose cursor is at START_ELEMENTSOAPException
public MessageFactory createMessageFactory(String namespace) throws SOAPException, WebServiceException
SAAJConverter
createMessageFactory
in interface SAAJConverter
WebServiceException
- if the namespace is SOAP 1.2 and the SAAJ does not support
SOAP 1.2 or the namespace is unknown.SOAPException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.