|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.ws.domain.GenericResponse
public class GenericResponse
This class contains all the information for the generic response.
Constructor Summary | |
---|---|
GenericResponse(SOAPMessage message)
|
Method Summary | ||
---|---|---|
Node |
asNode()
Getter that returns the response as Node . |
|
|
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()
Helpermethod that verifies if the SOAPBody contains a SOAPFault . |
|
SOAPMessage |
getSOAPMessage()
Getter that returns the original SOAPMessage . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericResponse(SOAPMessage message)
Method Detail |
---|
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.
TechnicalConnectorException
SOAPException
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
SOAPBody
contains a SOAPFault
.
SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |