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