Alex
Alex

Reputation: 34978

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.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

Answers (1)

Thomas Broyer
Thomas Broyer

Reputation: 64541

Similarly: RequestFactoryServlet.getThreadLocalRequest().getRemoteUser()

Upvotes: 2

Related Questions