001    package railo.runtime.listener;
002    
003    import railo.runtime.PageContext;
004    import railo.runtime.PageSource;
005    import railo.runtime.exp.PageException;
006    
007    /**
008     * this lstener is executed after the application.cfc/application.cfm was invoked, but before onApplicationStart, this class can change the PageSource executed
009    */
010    public interface RequestListener {
011            
012            /**
013             * execute by the Application Listener
014             * @param pc page context of the current request
015             * @param requestedPage original requested pagesource
016             * @return pagesource that should be use by the ApplicationListener
017             * @throws PageException
018             */
019            public PageSource execute(PageContext pc, PageSource requestedPage) throws PageException;
020    
021    }