Class UrlRedirectClientWindow

    • Constructor Detail

      • UrlRedirectClientWindow

        public UrlRedirectClientWindow​(TokenGenerator tokenGenerator)
    • Method Detail

      • constructInitialRedirectUrl

        protected String constructInitialRedirectUrl​(ExternalContext externalContext)
      • encodeURLParameterValue

        public static String encodeURLParameterValue​(String value,
                                                     ExternalContext externalContext)
        Encodes the given value using URLEncoder.encode() with the charset returned from ExternalContext.getResponseCharacterEncoding(). This is exactly how the ExternalContext impl encodes URL parameter values.
        Parameters:
        value - value which should be encoded
        externalContext - current external-context
        Returns:
        encoded value