| java.lang.Object org.directwebremoting.extend.Reply
Reply | public class Reply (Code) | | Reply is a read-only POJO to encapsulate the information required to make a
single java call, including the result of the call (either returned data or
exception).
author: Joe Walker [joe at getahead dot ltd dot uk] |
Constructor Summary | |
public | Reply(String callId, Object reply) Constructor for the success case. | public | Reply(String callId, Object reply, Throwable th) Constructor for the error case.
Reply must be set to null for this constructor to work. |
Reply | public Reply(String callId, Object reply)(Code) | | Constructor for the success case.
Parameters: callId - The call callId, copied from the Call object Parameters: reply - The successful reply data |
Reply | public Reply(String callId, Object reply, Throwable th)(Code) | | Constructor for the error case.
Reply must be set to null for this constructor to work. This
parameter exists to avoid overloading issues. See Java Puzzlers #46 for
an example.
Parameters: callId - The call callId, copied from the Call object Parameters: reply - Must be set to null Parameters: th - The exception to record against this call. |
getCallId | public String getCallId()(Code) | | Returns the call callId. |
getReply | public Object getReply()(Code) | | Returns the call return value. |
|
|