java - GWT - RPC equivalent of "ServiceLayerDecorator.invoke(Method domainMethod, Object... args)" -
for request factory calls can use servicelayerdecorator.invoke(method domainmethod, object... args)
check every method invoked, if user has valid session , allowed access method. equivalent rpc calls?
you override abstractremoteserviceservlet.onafterrequestdeserialized(rpcrequest)
/** * override method examine deserialized version of request * before call servlet method made. default implementation * nothing , need not called subclasses. * * @param rpcrequest */ protected void onafterrequestdeserialized(rpcrequest rpcrequest) { }
for servlets. maybe create central mybaseremoteserviceservlet
, override method, , derive remote service servlets that. rpcrequest
should contain info need, including method called, , parameters.
Comments
Post a Comment