Class MultiSpeakResult
java.lang.Object
com.ecec.rweber.multispeak.MultiSpeakResult
Represents the returned results from a Multispeak endpoint call. If the method returns a payload the XML can be accessed. If the result returned an error the exception can be viewed.
- Author:
- rweber
-
Constructor Summary
ConstructorsConstructorDescriptionMultiSpeakResult(MultiSpeakException ex, String method) MultiSpeakResult(Document xml, String method) -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolean
-
Constructor Details
-
MultiSpeakResult
-
MultiSpeakResult
MultiSpeakResult(MultiSpeakException ex, String method)
-
-
Method Details
-
isSuccess
public boolean isSuccess()- Returns:
- if the method call returned a valid XML result
-
getResult
- Returns:
- the payload body if isSuccess() is true, otherwise NULL
-
getHeader
-
containsData
public boolean containsData()- Returns:
- true if the payload body has any data, false if empty
-
getException
- Returns:
- the exception if isSuccess() is false, otherwise NULL
-