|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
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,
javax.xml.namespace.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(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(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public javax.xml.soap.SOAPEnvelope toSAAJ(org.apache.axiom.soap.SOAPEnvelope omEnvelope) throws javax.xml.ws.WebServiceException
SAAJConverter
toSAAJ
in interface SAAJConverter
javax.xml.ws.WebServiceException
public org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope)
SAAJConverter
toOM
in interface SAAJConverter
public org.apache.axiom.soap.SOAPEnvelope toOM(javax.xml.soap.SOAPEnvelope saajEnvelope, org.apache.axiom.attachments.Attachments attachments) throws javax.xml.ws.WebServiceException
SAAJConverter
toOM
in interface SAAJConverter
javax.xml.ws.WebServiceException
public org.apache.axiom.om.OMElement toOM(javax.xml.soap.SOAPElement soapElement) throws javax.xml.ws.WebServiceException
SAAJConverter
toOM
in interface SAAJConverter
javax.xml.ws.WebServiceException
public javax.xml.soap.SOAPElement toSAAJ(org.apache.axiom.om.OMElement omElement, javax.xml.soap.SOAPElement parent) throws javax.xml.ws.WebServiceException
SAAJConverter
toSAAJ
in interface SAAJConverter
parent
- SOAPElement
javax.xml.ws.WebServiceException
SAAJConverter.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
SAAJConverter
toSAAJ
in interface SAAJConverter
parent
- SOAPElementsf
- SOAPFactory that is used to create Name objects
javax.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_ELEMENT
javax.xml.ws.WebServiceException
protected 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_ELEMENT
javax.xml.soap.SOAPException
protected javax.xml.soap.SOAPElement createElement(javax.xml.soap.SOAPElement parent, javax.xml.namespace.QName qName) throws javax.xml.soap.SOAPException
parent
- SOAPElementname
- Name
javax.xml.soap.SOAPException
protected 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_ELEMENT
javax.xml.soap.SOAPException
protected 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_ELEMENT
javax.xml.soap.SOAPException
public javax.xml.soap.MessageFactory createMessageFactory(java.lang.String namespace) throws javax.xml.soap.SOAPException, javax.xml.ws.WebServiceException
SAAJConverter
createMessageFactory
in interface SAAJConverter
javax.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.SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |