001    package railo.runtime.functions.system;
002    
003    import railo.runtime.PageContext;
004    import railo.runtime.ext.function.Function;
005    
006    /**
007     * returns the root of this actuell Page Context
008     */
009    public final class GetContextRoot implements Function {
010            
011            public static String call(PageContext pc) {
012                    return pc. getHttpServletRequest().getContextPath();
013            }
014    }