Class ContentManager


  • public class ContentManager
    extends Object
    Author:
    pvandermaesen some static method for manage the content database.
    • Constructor Detail

      • ContentManager

        public ContentManager()
    • Method Detail

      • getContextName

        public static String getContextName​(javax.servlet.http.HttpServletRequest request)
      • getErrorLg

        public static String getErrorLg​(String lg)
      • 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)
      • getPath

        public static String getPath​(String realPath)
      • getPathDepth

        public static int getPathDepth​(String path)
        get the depth of the path
      • getPathElement

        public static String getPathElement​(String path,
                                            int depth)
      • 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)
      • splitPath

        public static String[] splitPath​(String path)