Class RedirectionActionHelper


  • public final class RedirectionActionHelper
    extends Object
    Helper to build RedirectionAction.
    Since:
    4.0.0
    Author:
    Jerome LELEU
    • Constructor Detail

      • RedirectionActionHelper

        public RedirectionActionHelper()
    • Method Detail

      • buildRedirectUrlAction

        public static RedirectionAction buildRedirectUrlAction​(WebContext context,
                                                               String location)
        Build the appropriate redirection action for a location.
        Parameters:
        context - the web context
        location - the location
        Returns:
        the appropriate redirection action
      • buildFormPostContentAction

        public static RedirectionAction buildFormPostContentAction​(WebContext context,
                                                                   String content)
        Build the appropriate redirection action for a content which is a form post.
        Parameters:
        context - the web context
        content - the content
        Returns:
        the appropriate redirection action
      • buildFormPostContent

        public static String buildFormPostContent​(WebContext context)
        Build a form POST content from the web context.
        Parameters:
        context - the web context
        Returns:
        the form POST content
      • escapeHtml

        protected static String escapeHtml​(String s)
      • isUseModernHttpCodes

        public static boolean isUseModernHttpCodes()
      • setUseModernHttpCodes

        public static void setUseModernHttpCodes​(boolean useModernHttpCodes)