- java.lang.Object
-
- javax.xml.transform.dom.DOMResult
-
- javax.xml.soap.SAAJResult
-
- All Implemented Interfaces:
- Result
public class SAAJResult extends DOMResult
Acts as a holder for the results of a JAXP transformation or a JAXB marshalling, in the form of a SAAJ tree. These results should be accessed by using thegetResult()
method. TheDOMResult.getNode()
method should be avoided in almost all cases.- Since:
- SAAJ 1.3
-
-
Field Summary
-
Fields inherited from class javax.xml.transform.dom.DOMResult
FEATURE
-
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
-
Constructor Summary
Constructors Constructor and Description SAAJResult()
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the default (SOAP 1.1) protocol.SAAJResult(SOAPElement rootNode)
Creates aSAAJResult
that will write the results as a child node of theSOAPElement
specified.SAAJResult(SOAPMessage message)
Creates aSAAJResult
that will write the results into theSOAPPart
of the suppliedSOAPMessage
.SAAJResult(String protocol)
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the specified protocol.
-
Method Summary
Methods Modifier and Type Method and Description Node
getResult()
-
Methods inherited from class javax.xml.transform.dom.DOMResult
getNextSibling, getNode, getSystemId, setNextSibling, setNode, setSystemId
-
-
-
-
Constructor Detail
-
SAAJResult
public SAAJResult() throws SOAPException
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the default (SOAP 1.1) protocol.This kind of
SAAJResult
is meant for use in situations where the results will be used as a parameter to a method that takes a parameter whose type, such asSOAPElement
, is drawn from the SAAJ API. When used in a transformation, the results are populated into theSOAPPart
of aSOAPMessage
that is created internally. TheSOAPPart
returned byDOMResult.getNode()
is not guaranteed to be well-formed.- Throws:
SOAPException
- if there is a problem creating aSOAPMessage
- Since:
- SAAJ 1.3
-
SAAJResult
public SAAJResult(String protocol) throws SOAPException
Creates aSAAJResult
that will present results in the form of a SAAJ tree that supports the specified protocol. TheDYNAMIC_SOAP_PROTOCOL
is ambiguous in this context and will cause this constructor to throw anUnsupportedOperationException
.This kind of
SAAJResult
is meant for use in situations where the results will be used as a parameter to a method that takes a parameter whose type, such asSOAPElement
, is drawn from the SAAJ API. When used in a transformation the results are populated into theSOAPPart
of aSOAPMessage
that is created internally. TheSOAPPart
returned byDOMResult.getNode()
is not guaranteed to be well-formed.- Parameters:
protocol
- - the name of the SOAP protocol that the resulting SAAJ tree should support- Throws:
SOAPException
- if aSOAPMessage
supporting the specified protocol cannot be created- Since:
- SAAJ 1.3
-
SAAJResult
public SAAJResult(SOAPMessage message)
Creates aSAAJResult
that will write the results into theSOAPPart
of the suppliedSOAPMessage
. In the normal case these results will be written using DOM APIs and, as a result, the finishedSOAPPart
will not be guaranteed to be well-formed unless the data used to create it is also well formed. When used in a transformation the validity of theSOAPMessage
after the transformation can be guaranteed only by means outside SAAJ specification.- Parameters:
message
- - the message whoseSOAPPart
will be populated as a result of some transformation or marshalling operation- Since:
- SAAJ 1.3
-
SAAJResult
public SAAJResult(SOAPElement rootNode)
Creates aSAAJResult
that will write the results as a child node of theSOAPElement
specified. In the normal case these results will be written using DOM APIs and as a result may invalidate the structure of the SAAJ tree. This kind ofSAAJResult
should only be used when the validity of the incoming data can be guaranteed by means outside of the SAAJ specification.- Parameters:
rootNode
- - the root to which the results will be appended- Since:
- SAAJ 1.3
-
-
Method Detail
-
getResult
public Node getResult()
- Returns:
- the resulting Tree that was created under the specified root Node.
- Since:
- SAAJ 1.3
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/xml/soap/saajresult.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.