public abstract class WebUtils extends Object
| Constructor and Description |
|---|
WebUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isType(Class type,
Stream<Object> items)
Check if any attribute is typeof the Renderer
|
static <V> boolean |
isType(Class type,
V... items)
Check if any attribute is typeof the Renderer
|
static String |
urlOfServlet(Class<? extends javax.servlet.http.HttpServlet> servlet,
String... params)
Returns an URL of the servlet of the root where a default value is an empty string
|
static String |
urlOfServlet(Class<? extends javax.servlet.http.HttpServlet> servlet,
String defaultUrl)
Find a first URL from
WebServlet annotation. |
public static final <V> boolean isType(@Nonnull Class type, @Nonnull V... items)
public static final boolean isType(Class type, @Nonnull Stream<Object> items)
@Nonnull public static String urlOfServlet(@Nonnull Class<? extends javax.servlet.http.HttpServlet> servlet, String... params)
@Nonnull public static String urlOfServlet(@Nonnull Class<? extends javax.servlet.http.HttpServlet> servlet, @Nonnull String defaultUrl)
WebServlet annotation.
Returns an URL of the servlet of the rootservlet - Servlet type of HttpServletdefaultUrl - A default resultCopyright 2019-2022, Pavel Ponec