|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfulmine.rpc.RpcResult
public final class RpcResult
Standard implementation.
| Field Summary |
|---|
| Fields inherited from interface fulmine.rpc.IRpcResult |
|---|
EXCEPTION, IS_SUCCESSFUL, MARKER, RESULT |
| Constructor Summary | |
|---|---|
RpcResult(boolean successful,
IField result,
String exceptionMessage)
Construct the RPC result. |
|
RpcResult(IRpcDefinition definition,
IContainer resultRecord)
Construct the RPC result from a result record. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getExceptionMessage()
Get the exception message if the RPC was not executed successfully. |
IRpcMarker |
getMarker()
Get the marker for the RPC invocation this result is for. |
IField |
getResult()
Get the result from the RPC |
int |
hashCode()
|
boolean |
isSuccessful()
Determine whether the RPC was successfully executed. |
String |
toString()
|
void |
updateResultRecord(IRpcMarker marker,
IContainer resultRecord)
Update the RPC's result record with the data from this result instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RpcResult(IRpcDefinition definition,
IContainer resultRecord)
definition - the definition for the RPCresultRecord - the result record
public RpcResult(boolean successful,
IField result,
String exceptionMessage)
successful - whether the RPC executed successfullyresult - the resultexceptionMessage - the exception, if any| Method Detail |
|---|
public String getExceptionMessage()
IRpcResult
getExceptionMessage in interface IRpcResultnull if the RPC was successfulIRpcResult.isSuccessful()public IField getResult()
IRpcResult
getResult in interface IRpcResultnull if the RPC was not
successfulIRpcResult.isSuccessful()public boolean isSuccessful()
IRpcResultIRpcResult.getResult() will return the result from the
RPC. If it was not successful, calling IRpcResult.getExceptionMessage()
will return a reason why the RPC was not successful.
isSuccessful in interface IRpcResulttrue if the RPC was successfully executed.public IRpcMarker getMarker()
IRpcResult
getMarker in interface IRpcResultIRpcManager.invoke(IRpcResultHandler, String, String, IField...)
public void updateResultRecord(IRpcMarker marker,
IContainer resultRecord)
IRpcResult
updateResultRecord in interface IRpcResultmarker - the marker for the RPC call this result is forresultRecord - the result record for the RPC this result is forpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||