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.
SOAPExceptionpublic 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
SOAPExceptionpublic byte[] getAttachment(String cid) throws SOAPException
SOAPExceptionpublic Source asSource() throws SOAPException
Source.
Warning:For obtaining the Attachement: the method getAttachement can be used.
SOAPExceptionpublic void getSOAPException()
throws SOAPException
SOAPException
Connector Packaging generic 4.4.0 API
Copyright © {inceptionYear}-2023 eHealth. All Rights Reserved.