public class ContentManager extends Object
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger |
static char |
MULTI_PARAM_SEP |
Constructor and Description |
---|
ContentManager() |
Modifier and Type | Method and Description |
---|---|
static String |
getContentLanguage(ContentContext ctx) |
static String |
getContextName(javax.servlet.http.HttpServletRequest request) |
static String |
getErrorLg(String lg) |
static String |
getLanguage(ContentContext ctx) |
static String |
getLanguage(javax.servlet.http.HttpServletRequest request,
int index) |
static String |
getLanguageFromRequest(javax.servlet.http.HttpServletRequest request) |
static String |
getParameterValue(javax.servlet.http.HttpServletRequest request,
String paramName,
String defaultValue)
Deprecated.
use RequestService
|
static String |
getPath(javax.servlet.http.HttpServletRequest request) |
static int |
getPathDepth(String path)
get the depth of the path
|
static String |
getPathElement(String path,
int depth) |
static boolean |
getRewrite(javax.servlet.http.HttpServletRequest request) |
static boolean |
isAdmin(String path) |
static boolean |
isAjax(javax.servlet.http.HttpServletRequest request) |
static boolean |
isAjax(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isEdit(javax.servlet.http.HttpServletRequest request) |
static boolean |
isEdit(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isMailing(javax.servlet.http.HttpServletRequest request) |
static boolean |
isMailing(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isPreview(javax.servlet.http.HttpServletRequest request) |
static boolean |
isPreview(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isTime(javax.servlet.http.HttpServletRequest request) |
static boolean |
isTime(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isView(javax.servlet.http.HttpServletRequest request,
boolean uriPrefixed) |
static boolean |
isView(String path) |
static boolean |
isView(String path,
boolean uriPrefixed) |
static void |
main(String[] args) |
static String[] |
splitPath(String path) |
protected static Logger logger
public static final char MULTI_PARAM_SEP
public static String getContentLanguage(ContentContext ctx)
public static String getContextName(javax.servlet.http.HttpServletRequest request)
public static String getLanguage(ContentContext ctx)
public static String getLanguage(javax.servlet.http.HttpServletRequest request, int index)
public static String getLanguageFromRequest(javax.servlet.http.HttpServletRequest request)
@Deprecated public static String getParameterValue(javax.servlet.http.HttpServletRequest request, String paramName, String defaultValue)
request
- paramName
- defaultValue
- public static String getPath(javax.servlet.http.HttpServletRequest request)
public static int getPathDepth(String path)
public static boolean getRewrite(javax.servlet.http.HttpServletRequest request)
public static boolean isAdmin(String path)
public static boolean isEdit(javax.servlet.http.HttpServletRequest request)
public static boolean isAjax(javax.servlet.http.HttpServletRequest request)
public static boolean isAjax(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isEdit(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isMailing(javax.servlet.http.HttpServletRequest request)
public static boolean isMailing(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isPreview(javax.servlet.http.HttpServletRequest request)
public static boolean isPreview(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isTime(javax.servlet.http.HttpServletRequest request)
public static boolean isTime(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isView(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
public static boolean isView(String path)
public static boolean isView(String path, boolean uriPrefixed)
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.