|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.common.service.CallResult
org.xins.client.XINSCallResult
Successful result of a call to a XINS service. It may be that some targets failed before a target returned a successful result. All the failures are also stored in this object.
When a XINSCallResult instance is created, information must
be passed both about the successful call (which target successfully
returned a result, how long did it take, what was the result) and about the
unsuccessful calls (to which targets were they, what was the error, etc.)
While a XINSCallResultData object describes the result of a call
to an single target, a XINSCallResultData also describes all
failed calls that happened before.
| Method Summary | |
DataElement |
getDataElement()
Returns the optional extra data. |
String |
getErrorCode()
Returns the error code. |
String |
getParameter(String name)
Gets the value of the specified parameter. |
PropertyReader |
getParameters()
Gets all parameters. |
| Methods inherited from class org.xins.common.service.CallResult |
getDuration, getExceptions, getRequest, getSucceededTarget |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public String getErrorCode()
null is returned the call was
successful and thus no error code was returned. Otherwise the call was
unsuccessful.
This method will never return an empty string, so if the result is
not null, then it is safe to assume the length of the
string is at least 1 character.
getErrorCode in interface XINSCallResultDatanull if the call was
successful.public PropertyReader getParameters()
getParameters in interface XINSCallResultDataPropertyReader with all parameters, or null
if there are none.
public String getParameter(String name)
throws IllegalArgumentException
name - the parameter element name, not null.
null if the parameter has no value.
IllegalArgumentException - if name == null.public DataElement getDataElement()
DataElement,
or null.
getDataElement in interface XINSCallResultDataDataElement, can be
null.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||