On 5 juil, 20:57, Bruno Santos <bruegosan...@gmail.com> wrote:
> Is there any way to run a given command at the beginning and end of
> any RPC request?

You can provide an RpcRequestBuilder and either:
 - return your own RequestBuilder from doCreate(), which would
override send() and setCallback()
 - do the "beginning command" within some doXxx method of the
RpcRequestBuilder (that'd mean just before the send(), but it
shouldn't matter much) and override setCallback() to wrap the
RequestCallback so you can do the "end command" there (just before or
after delegating to the wrapped callback)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to