Re: How to log every RPC service request and response
Ok, ill give it a try! I thought about that cause i read it in the securing requestfactory with this custom header thread before. Regards On Apr 5, 10:33 pm, Thomas Broyer t.bro...@gmail.com wrote: On Tuesday, April 5, 2011 7:17:18 PM UTC+2, opn wrote: How would I do this for RequestFactory? (Hope you don't mind that I'm asking it here, follow-up question) It's much easier! Use the 3-args init() method of the RequestFactory to pass a RequestTransport (most probably one that extends the DefaultRequestTransport). -- 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-toolkit@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.
Re: How to log every RPC service request and response
How would I do this for RequestFactory? (Hope you don't mind that I'm asking it here, follow-up question) -- 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-toolkit@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.
Re: How to log every RPC service request and response
On Tuesday, April 5, 2011 7:17:18 PM UTC+2, opn wrote: How would I do this for RequestFactory? (Hope you don't mind that I'm asking it here, follow-up question) It's much easier! Use the 3-args init() method of the RequestFactory to pass a RequestTransport (most probably one that extends the DefaultRequestTransport). -- 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-toolkit@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.
How to log every RPC service request and response
I want to show progress as loading for every RPC request and response. How to do instead of mentioning every time during the rpc service object? Can there be some global location to log all the rpc request and response?? -- 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-toolkit@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.
Re: How to log every RPC service request and response
Not a global location, but you can set it up once for each GWT.create() of a given service: 1. cast the service to a ServiceDefTargethttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html 2. call setRpcRequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html#setRpcRequestBuilder(com.google.gwt.user.client.rpc.RpcRequestBuilder)with a custom class extending RpcRequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/RpcRequestBuilder.html 3. that class would either: - create a custom RequestBuilder, overriding the send() to show the message and wrap the callback to hide it on success or failure - show the loading message in onFinish() and wrap the callback to hide it on success or failure -- 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-toolkit@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.