|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fulmine.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 recordpublic RpcResult(boolean successful, IField result, String exceptionMessage)
successful
- whether the RPC executed successfullyresult
- the resultexceptionMessage
- the exception, if anyMethod Detail |
---|
public String getExceptionMessage()
IRpcResult
getExceptionMessage
in interface IRpcResult
null
if the RPC was successfulIRpcResult.isSuccessful()
public IField getResult()
IRpcResult
getResult
in interface IRpcResult
null
if the RPC was not
successfulIRpcResult.isSuccessful()
public boolean isSuccessful()
IRpcResult
IRpcResult.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 IRpcResult
true
if the RPC was successfully executed.public IRpcMarker getMarker()
IRpcResult
getMarker
in interface IRpcResult
IRpcManager.invoke(IRpcResultHandler, String, String, IField...)
public void updateResultRecord(IRpcMarker marker, IContainer resultRecord)
IRpcResult
updateResultRecord
in interface IRpcResult
marker
- 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 Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |