public interface SessionAware
link which is making a remote method invocation. To access the link, call SessionAccess.current() from within a remote method implementation. Because extra
overhead is required for supporting this feature, it is not enabled by default.
public class RemoteLoginServer implements RemoteLogin, SessionAware {
RemoteApp login(String username, char[] password) throws AuthException {
Link session = SessionAccess.current();
authCheck(session.getRemoteAddress(), username, password);
...
}
...
}
SessionAccessCopyright © 2006–2015 Cojen. All rights reserved.