0
我正在使用GWT RequestFactory。 当我在扩展RemoteServiceServlet的正常RPC类中时,我可以使用this.getThreadLocalRequest()
访问当前请求。如何在requestfactory使用的域对象中访问当前请求?
现在我在一个域对象。我如何访问当前请求? 我需要getThreadLocalRequest().getRemoteUser()
我正在使用GWT RequestFactory。 当我在扩展RemoteServiceServlet的正常RPC类中时,我可以使用this.getThreadLocalRequest()
访问当前请求。如何在requestfactory使用的域对象中访问当前请求?
现在我在一个域对象。我如何访问当前请求? 我需要getThreadLocalRequest().getRemoteUser()
同理:RequestFactoryServlet.getThreadLocalRequest()
.getRemoteUser()