public synchronized void putValue(String key, Object value) { if (!isValid) throw new IllegalStateException("session invalid"); setAttribute(key, value); }
public synchronized void putValue(String key, Object value) { if (!isValid) throw new IllegalStateException("session invalid"); setAttribute(key, value); }
public synchronized void putValue(String key, Object value) { if (!isValid) throw new IllegalStateException("session invalid"); setAttribute(key, value); }
/** * Sets the specified <code>ActionMessages</code> object * as the currently present messages to the session. * @param messages the ActionMessages object */ public void setActionMessagesToSession(ActionMessages messages) { mockFactory.getMockSession().setAttribute(messageAttributeKey, messages); }
/** * Sets the session attribute for the specified key * @param key the session key * @param value the value */ public void setSessionAttribute(String key, Object value) { mockFactory.getMockSession().setAttribute(key, value); } }
/** * Sets the specified <code>ActionErrors</code> object * as the currently present errors to the session. * @param errors the ActionErrors object */ public void setActionErrorsToSession(ActionMessages errors) { mockFactory.getMockSession().setAttribute(errorAttributeKey, errors); }
/** * Sets the specified <code>ActionMessages</code> object * as the currently present messages to the session. * @param messages the ActionMessages object */ public void setActionMessagesToSession(ActionMessages messages) { mockFactory.getMockSession().setAttribute(messageAttributeKey, messages); }
/** * Sets the session attribute for the specified key * @param key the session key * @param value the value */ public void setSessionAttribute(String key, Object value) { mockFactory.getMockSession().setAttribute(key, value); } }
/** * Sets the session attribute for the specified key * @param key the session key * @param value the value */ public void setSessionAttribute(String key, Object value) { mockFactory.getMockSession().setAttribute(key, value); } }
/** * Sets the specified locale as a session attribute * using <code>Globals.LOCALE_KEY</code> as the key. You can * use this method, if your action calls * <code>Action.getLocale(HttpServletRequest)</code>. * @param locale the locale */ public void setLocale(Locale locale) { mockFactory.getMockSession().setAttribute(Globals.LOCALE_KEY, locale); }
/** * Sets the specified locale as a session attribute * using <code>Globals.LOCALE_KEY</code> as the key. You can * use this method, if your action calls * <code>Action.getLocale(HttpServletRequest)</code>. * @param locale the locale */ public void setLocale(Locale locale) { mockFactory.getMockSession().setAttribute(Globals.LOCALE_KEY, locale); }
/** * Sets the specified <code>ActionMessages</code> object * as the currently present messages to the session. * @param messages the ActionMessages object */ public void setActionMessagesToSession(ActionMessages messages) { mockFactory.getMockSession().setAttribute(messageAttributeKey, messages); }
/** * Sets the specified <code>ActionErrors</code> object * as the currently present errors to the session. * @param errors the ActionErrors object */ public void setActionErrorsToSession(ActionMessages errors) { mockFactory.getMockSession().setAttribute(errorAttributeKey, errors); }
/** * Sets the specified locale as a session attribute * using <code>Globals.LOCALE_KEY</code> as the key. You can * use this method, if your action calls * <code>Action.getLocale(HttpServletRequest)</code>. * @param locale the locale */ public void setLocale(Locale locale) { mockFactory.getMockSession().setAttribute(Globals.LOCALE_KEY, locale); }
/** * Sets the specified <code>ActionErrors</code> object * as the currently present errors to the session. * @param errors the ActionErrors object */ public void setActionErrorsToSession(ActionMessages errors) { mockFactory.getMockSession().setAttribute(errorAttributeKey, errors); }
/** * Generates a token and sets it to the session and the request. */ public void generateValidToken() { String token = String.valueOf(Math.random()); mockFactory.getMockSession().setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); addRequestParameter(Constants.TOKEN_KEY, token); }
/** * Generates a token and sets it to the session and the request. */ public void generateValidToken() { String token = String.valueOf(Math.random()); mockFactory.getMockSession().setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); addRequestParameter(Constants.TOKEN_KEY, token); }
/** * Generates a token and sets it to the session and the request. */ public void generateValidToken() { String token = String.valueOf(Math.random()); mockFactory.getMockSession().setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); addRequestParameter(Constants.TOKEN_KEY, token); }