How to access the current request while in an domain object used by requestfactory?
I am using GWT RequestFactory.
When I am in a normal RPC class that extends RemoteServiceServlet I can access the current request using this.getThreadLocalReq开发者_JAVA技巧uest()
.
Now I am in a Domain object. How can I access the current request?
I need to get getThreadLocalRequest().getRemoteUser()
Similarly: RequestFactoryServlet.getThreadLocalRequest()
.getRemoteUser()
精彩评论