コード例 #1
0
        /**
         * Returns the path-info for the current page, i.e. this will return the
         * url of the include page, not the original request.
         */
        public static string getPagePathInfo(QuercusHttpServletRequest request)
        {
            string uri = request.getIncludeRequestUri();

            if (uri != null)
            {
                return(request.getIncludePathInfo());
            }
            else
            {
                return(request.getPathInfo());
            }
        }
コード例 #2
0
        /**
         * Returns the query-string for the current page, i.e. this will return the
         * url of the include page, not the original request.
         */
        public static string getPageQueryString(QuercusHttpServletRequest request)
        {
            string uri = request.getIncludeRequestUri();

            if (uri != null)
            {
                return(request.getIncludeQueryString());
            }
            else
            {
                /*
                 * // php/0829
                 * uri = (String) request.getAttribute(FWD_REQUEST_URI);
                 *
                 * if (uri != null)
                 * return (String) request.getAttribute(FWD_QUERY_STRING);
                 * else
                 * return request.getQueryString();
                 */
                return(request.getQueryString());
            }
        }
コード例 #3
0
        public static string getPageURI(QuercusHttpServletRequest request)
        {
            string uri = request.getIncludeRequestUri();

            if (uri != null)
            {
                return(uri);
            }
            else
            {
                // php/0829

                uri = request.getForwardRequestUri();

                if (uri != null)
                {
                    return(uri);
                }
                else
                {
                    return(request.getRequestURI());
                }
            }
        }