protected boolean rememberMeRequested(HttpServletRequest request, String parameter) {
    """
	Allows customization of whether a remember-me login has been requested. The default
	is to return {@code true} if the configured parameter name has been included in the
	request and is set to the value {@code true}.
	@param request the request submitted from an interactive login, which may include
	additional information indicating that a persistent login is desired.
	@param parameter the configured remember-me parameter name.
	@return true if the request includes information indicating that a persistent login
	has been requested.
    """
		String rememberMe = request.getParameter(parameter);
		if (rememberMe != null) {
			if (rememberMe.equalsIgnoreCase("true") || rememberMe.equalsIgnoreCase("on")
					|| rememberMe.equalsIgnoreCase("yes") || rememberMe.equals("1")) {
				return true;
			}
		}
		if (logger.isDebugEnabled()) {
			logger.debug("Did not send remember-me cookie (principal did not set "
					+ "parameter '" + parameter + "')");
		}
		return false;
	}
protected boolean rememberMeRequested(HttpServletRequest request, String parameter) {
		String rememberMe = request.getParameter(parameter);
		if (rememberMe != null) {
			if (rememberMe.equalsIgnoreCase("true") || rememberMe.equalsIgnoreCase("on")
					|| rememberMe.equalsIgnoreCase("yes") || rememberMe.equals("1")) {
				return true;
			}
		}
		if (logger.isDebugEnabled()) {
			logger.debug("Did not send remember-me cookie (principal did not set "
					+ "parameter '" + parameter + "')");
		}
		return false;
	}
protected boolean rememberMeRequested ( HttpServletRequest request , String parameter ) { String rememberMe = request . getParameter ( parameter ) ; if ( rememberMe != null ) { if ( rememberMe . equalsIgnoreCase ( "true" ) || rememberMe . equalsIgnoreCase ( "on" ) || rememberMe . equalsIgnoreCase ( "yes" ) || rememberMe . equals ( "1" ) ) { return true ; } } if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Did not send remember-me cookie (principal did not set " + "parameter '" + parameter + "')" ) ; } return false ; }
Allows customization of whether a remember-me login has been requested. The default
is to return {@code true} if the configured parameter name has been included in the
request and is set to the value {@code true}.
@param request the request submitted from an interactive login, which may include
additional information indicating that a persistent login is desired.
@param parameter the configured remember-me parameter name.
@return true if the request includes information indicating that a persistent login
has been requested.
Allows customization of whether a remember - me login has been requested . The default is to return {