Class AdminUtils
- java.lang.Object
-
- com.github.adminfaces.template.util.AdminUtils
-
public class AdminUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description AdminUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringencodeURL(String string)Copied from OmniFaces to avoid version conflicts URL-encode the given string using UTF-8.static jakarta.servlet.http.HttpServletRequestgetRequest(jakarta.faces.context.FacesContext context)static voidredirect(String url, Object... paramValues)
-
-
-
Method Detail
-
redirect
public static void redirect(String url, Object... paramValues)
- Parameters:
url- the url to redirectparamValues- 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
nullifnullwas given. - Throws:
UnsupportedOperationException- When this platform does not support UTF-8.
-
-