|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.jaxws.message.util.impl.SAAJConverterImpl
public class SAAJConverterImpl
SAAJConverterImpl Provides an conversion methods between OM<->SAAJ
Nested Class Summary | |
---|---|
protected class |
SAAJConverterImpl.NameCreator
A Name can be created from either a SOAPEnvelope or SOAPFactory. |
Method Summary | |
---|---|
protected void |
addAttributes(SAAJConverterImpl.NameCreator nc,
SOAPElement element,
javax.xml.stream.XMLStreamReader reader)
add attributes |
protected SOAPElement |
buildSOAPTree(SAAJConverterImpl.NameCreator nc,
SOAPElement root,
SOAPElement parent,
javax.xml.stream.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,
javax.xml.stream.XMLStreamReader reader)
Create SOAPElement from the current tag data |
MessageFactory |
createMessageFactory(java.lang.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 |
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,
javax.xml.stream.XMLStreamReader reader,
boolean newElement)
update the tag data of the SOAPElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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) 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
- SOAPElement
WebServiceException
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 objects
WebServiceException
- * @see toSAAJ(OMElement, SOAPElement)protected SOAPElement buildSOAPTree(SAAJConverterImpl.NameCreator nc, SOAPElement root, SOAPElement parent, javax.xml.stream.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_ELEMENT
WebServiceException
protected SOAPElement createElementFromTag(SAAJConverterImpl.NameCreator nc, SOAPElement parent, javax.xml.stream.XMLStreamReader reader) throws SOAPException
nc
- NameCreatorparent
- SOAPElement for the new SOAPElementreader
- XMLStreamReader whose cursor is at the START_ELEMENT
SOAPException
protected SOAPElement createElement(SOAPElement parent, QName qName) throws SOAPException
parent
- SOAPElementname
- Name
SOAPException
protected void updateTagData(SAAJConverterImpl.NameCreator nc, SOAPElement element, javax.xml.stream.XMLStreamReader reader, boolean newElement) throws SOAPException
NameCreator
- ncelement
- SOAPElementreader
- XMLStreamReader whose cursor is at START_ELEMENT
SOAPException
protected void addAttributes(SAAJConverterImpl.NameCreator nc, SOAPElement element, javax.xml.stream.XMLStreamReader reader) throws SOAPException
NameCreator
- ncelement
- SOAPElement which is the target of the new attributesreader
- XMLStreamReader whose cursor is at START_ELEMENT
SOAPException
public MessageFactory createMessageFactory(java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |