public final class WebUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAsyncMarker(javax.servlet.annotation.WebFilter annotation) |
static java.lang.String |
getAsyncMarker(javax.servlet.annotation.WebServlet annotation) |
static java.lang.String |
getContextMarkers(AdminContext context)
Returns "" for main context (assuming its default) and "A" for admin context.
|
static java.lang.String |
getFilterName(javax.servlet.annotation.WebFilter filter,
java.lang.Class<? extends javax.servlet.Filter> type)
When filter name not set in annotation, name generates as: .
|
static java.lang.String |
getServletName(javax.servlet.annotation.WebServlet servlet,
java.lang.Class<? extends javax.servlet.http.HttpServlet> type) |
static boolean |
isForAdmin(AdminContext context) |
static boolean |
isForMain(AdminContext context) |
public static java.lang.String getFilterName(javax.servlet.annotation.WebFilter filter,
java.lang.Class<? extends javax.servlet.Filter> type)
filter - filter annotationtype - filter typepublic static java.lang.String getServletName(javax.servlet.annotation.WebServlet servlet,
java.lang.Class<? extends javax.servlet.http.HttpServlet> type)
servlet - servlet annotationtype - servlet typepublic static boolean isForMain(AdminContext context)
context - context annotationpublic static boolean isForAdmin(AdminContext context)
context - context annotationpublic static java.lang.String getContextMarkers(AdminContext context)
context - context annotationpublic static java.lang.String getAsyncMarker(javax.servlet.annotation.WebFilter annotation)
annotation - filter registration annotationpublic static java.lang.String getAsyncMarker(javax.servlet.annotation.WebServlet annotation)
annotation - servlet registration annotation