开发者

How to access the current request while in an domain object used by requestfactory?

开发者 https://www.devze.com 2023-03-02 08:37 出处:网络
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().

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()

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号