railo.runtime.listener
Class ModernAppListener

java.lang.Object
  extended by railo.runtime.listener.AppListenerSupport
      extended by railo.runtime.listener.ModernAppListener
All Implemented Interfaces:
ApplicationListener
Direct Known Subclasses:
MixedAppListener

public class ModernAppListener
extends AppListenerSupport


Field Summary
 
Fields inherited from interface railo.runtime.listener.ApplicationListener
CFC_EXTENSION, MODE_CURRENT, MODE_CURRENT2ROOT, MODE_ROOT
 
Constructor Summary
ModernAppListener()
           
 
Method Summary
 int getMode()
           
 String getType()
           
 boolean hasOnSessionStart(PageContext pc)
           
 void onApplicationEnd(CFMLFactory factory, String applicationName)
          this method will be called when a application scope ends
 boolean onApplicationStart(PageContext pc)
          this method will be called when a new application context starts
 void onDebug(PageContext pc)
          called after "onRequestEnd" to generate debugging output, will only be called when debugging is enabled
 void onError(PageContext pc, PageException pe)
          this method will be called if server has a error (exception) not throwed by a try-catch block
 void onRequest(PageContext pc, PageSource requestedPage)
          this method will be called the application self
 void onSessionEnd(CFMLFactory factory, String applicationName, String cfid)
          this method will be called when a session ends
 void onSessionStart(PageContext pc)
          this method will be called when a new session starts
 void setMode(int mode)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModernAppListener

public ModernAppListener()
Method Detail

onRequest

public void onRequest(PageContext pc,
                      PageSource requestedPage)
               throws PageException
Description copied from interface: ApplicationListener
this method will be called the application self

Throws:
PageException
See Also:
ApplicationListener.onRequest(railo.runtime.PageContext, railo.runtime.PageSource)

onApplicationStart

public boolean onApplicationStart(PageContext pc)
                           throws PageException
Description copied from interface: ApplicationListener
this method will be called when a new application context starts

Throws:
PageException
See Also:
ApplicationListener.onApplicationStart(railo.runtime.PageContext)

onApplicationEnd

public void onApplicationEnd(CFMLFactory factory,
                             String applicationName)
                      throws PageException
Description copied from interface: ApplicationListener
this method will be called when a application scope ends

Throws:
PageException

onSessionStart

public void onSessionStart(PageContext pc)
                    throws PageException
Description copied from interface: ApplicationListener
this method will be called when a new session starts

Throws:
PageException
See Also:
ApplicationListener.onSessionStart(railo.runtime.PageContext)

onSessionEnd

public void onSessionEnd(CFMLFactory factory,
                         String applicationName,
                         String cfid)
                  throws PageException
Description copied from interface: ApplicationListener
this method will be called when a session ends

Throws:
PageException
See Also:
ApplicationListener.onSessionEnd(railo.runtime.CFMLFactory, java.lang.String, java.lang.String)

onDebug

public void onDebug(PageContext pc)
             throws PageException
Description copied from interface: ApplicationListener
called after "onRequestEnd" to generate debugging output, will only be called when debugging is enabled

Throws:
PageException
See Also:
ApplicationListener.onDebug(railo.runtime.PageContext)

onError

public void onError(PageContext pc,
                    PageException pe)
Description copied from interface: ApplicationListener
this method will be called if server has a error (exception) not throwed by a try-catch block

pe - PageExcpetion Exception that has been throwed
See Also:
ApplicationListener.onError(railo.runtime.PageContext, railo.runtime.exp.PageException)

setMode

public void setMode(int mode)
See Also:
ApplicationListener.setMode(int)

getMode

public int getMode()
See Also:
ApplicationListener.getMode()

getType

public String getType()
Returns:
the type

setType

public void setType(String type)
Parameters:
type - the type to set

hasOnSessionStart

public boolean hasOnSessionStart(PageContext pc)
Overrides:
hasOnSessionStart in class AppListenerSupport
See Also:
AppListenerSupport.hasOnSessionStart(railo.runtime.PageContext)


Copyright © 2012 Railo