/** * Validates the session id passed into the service * * @param params rpc parameters * @throws SessionTimedOutException in all cases unless the sessionId is valid */ /* package */ void validateSession(Object[] params) throws SessionTimedOutException { if (params != null && params.length > 0 && (params[0] instanceof String)) { String s = (String) params[0]; BaseService bs = (BaseService) service; if (bs.isSessionValid(s) == false) { throw new SessionTimedOutException(); } } else { // default throw new SessionTimedOutException(); } }