Class AdminUtils


  • public class AdminUtils
    extends Object
    • Constructor Detail

      • AdminUtils

        public AdminUtils()
    • Method Detail

      • redirect

        public static void redirect​(String url,
                                    Object... paramValues)
        Parameters:
        url - the url to redirect
        paramValues - url params
      • getRequest

        public static jakarta.servlet.http.HttpServletRequest getRequest​(jakarta.faces.context.FacesContext context)
      • encodeURL

        public static String encodeURL​(String string)
        Copied from OmniFaces to avoid version conflicts URL-encode the given string using UTF-8.
        Parameters:
        string - The string to be URL-encoded using UTF-8.
        Returns:
        The given string, URL-encoded using UTF-8, or null if null was given.
        Throws:
        UnsupportedOperationException - When this platform does not support UTF-8.