Reputation: 34978
I am using GWT RequestFactory.
When I am in a normal RPC class that extends RemoteServiceServlet I can access the current request using this.getThreadLocalRequest()
.
Now I am in a Domain object. How can I access the current request?
I need to get getThreadLocalRequest().getRemoteUser()
Upvotes: 0
Views: 470
Reputation: 64541
Similarly: RequestFactoryServlet.getThreadLocalRequest()
.getRemoteUser()
Upvotes: 2