public class GenericResponse extends Object
Constructor and Description |
---|
GenericResponse(SOAPMessage message) |
Modifier and Type | Method and Description |
---|---|
Node |
asNode()
Getter that returns the response as
Node . |
<T> T |
asObject(Class<T> clazz)
Obtain the response as Object.
|
Source |
asSource()
Getter that returns the response as
Source . |
String |
asString()
Getter that returns the response as
String . |
byte[] |
getAttachment(String cid)
Method to obtain an Attachement based on de swaref id
|
void |
getSOAPException()
|
SOAPMessage |
getSOAPMessage()
Getter that returns the original
SOAPMessage . |
public GenericResponse(SOAPMessage message)
public Node asNode() throws SOAPException
Node
.
Warning:For obtaining the Attachement: the method getAttachement can be used.
SOAPException
public String asString() throws TechnicalConnectorException, SOAPException
String
.
Warning:For obtaining the Attachement: the method getAttachement can be used.
public SOAPMessage getSOAPMessage()
SOAPMessage
.public <T> T asObject(Class<T> clazz) throws SOAPException
Warning: the object passed as parameter must be an JAXBObject with the @XmlRootElement annotation
SOAPException
public byte[] getAttachment(String cid) throws SOAPException
SOAPException
public Source asSource() throws SOAPException
Source
.
Warning:For obtaining the Attachement: the method getAttachement can be used.
SOAPException
public void getSOAPException() throws SOAPException
SOAPException
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.