Package org.javlo.context
Class ContentManager
- java.lang.Object
-
- org.javlo.context.ContentManager
-
public class ContentManager extends Object
- Author:
- pvandermaesen some static method for manage the content database.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
logger
static char
MULTI_PARAM_SEP
-
Constructor Summary
Constructors Constructor Description ContentManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getContentLanguage(ContentContext ctx)
static String
getContextName(javax.servlet.http.HttpServletRequest request)
static String
getErrorLg(String lg)
static String
getLanguage(javax.servlet.http.HttpServletRequest request, int index)
static String
getLanguage(ContentContext ctx)
static String
getLanguageFromRequest(javax.servlet.http.HttpServletRequest request)
static String
getParameterValue(javax.servlet.http.HttpServletRequest request, String paramName, String defaultValue)
Deprecated.use RequestServicestatic String
getPath(String realPath)
static String
getPath(javax.servlet.http.HttpServletRequest request)
static int
getPathDepth(String path)
get the depth of the pathstatic 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(String path)
static boolean
isView(String path, boolean uriPrefixed)
static boolean
isView(javax.servlet.http.HttpServletRequest request)
static boolean
isView(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
static void
main(String[] args)
static String[]
splitPath(String path)
-
-
-
Field Detail
-
logger
protected static Logger logger
-
MULTI_PARAM_SEP
public static final char MULTI_PARAM_SEP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContentLanguage
public static String getContentLanguage(ContentContext ctx)
-
getContextName
public static String getContextName(javax.servlet.http.HttpServletRequest request)
-
getLanguage
public static String getLanguage(ContentContext ctx)
-
getLanguage
public static String getLanguage(javax.servlet.http.HttpServletRequest request, int index)
-
getLanguageFromRequest
public static String getLanguageFromRequest(javax.servlet.http.HttpServletRequest request)
-
getParameterValue
@Deprecated public static String getParameterValue(javax.servlet.http.HttpServletRequest request, String paramName, String defaultValue)
Deprecated.use RequestService- Parameters:
request
-paramName
-defaultValue
-- Returns:
-
getPath
public static String getPath(javax.servlet.http.HttpServletRequest request)
-
getPathDepth
public static int getPathDepth(String path)
get the depth of the path
-
getRewrite
public static boolean getRewrite(javax.servlet.http.HttpServletRequest request)
-
isAdmin
public static boolean isAdmin(String path)
-
isEdit
public static boolean isEdit(javax.servlet.http.HttpServletRequest request)
-
isAjax
public static boolean isAjax(javax.servlet.http.HttpServletRequest request)
-
isAjax
public static boolean isAjax(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isEdit
public static boolean isEdit(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isMailing
public static boolean isMailing(javax.servlet.http.HttpServletRequest request)
-
isMailing
public static boolean isMailing(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isPreview
public static boolean isPreview(javax.servlet.http.HttpServletRequest request)
-
isPreview
public static boolean isPreview(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isView
public static boolean isView(javax.servlet.http.HttpServletRequest request)
-
isTime
public static boolean isTime(javax.servlet.http.HttpServletRequest request)
-
isTime
public static boolean isTime(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isView
public static boolean isView(javax.servlet.http.HttpServletRequest request, boolean uriPrefixed)
-
isView
public static boolean isView(String path)
-
isView
public static boolean isView(String path, boolean uriPrefixed)
-
main
public static void main(String[] args)
-
-