public class ModernAppListener extends AppListenerSupport
CFC_EXTENSION, MODE_CURRENT, MODE_CURRENT_OR_ROOT, MODE_CURRENT2ROOT, MODE_ROOT
Constructor and Description |
---|
ModernAppListener() |
Modifier and Type | Method and Description |
---|---|
int |
getMode() |
String |
getType() |
boolean |
hasOnSessionEnd(String applicationName) |
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,
RequestListener rl)
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) |
hasOnApplicationStart, onServerEnd, onServerStart, onTimeout, setType
public ModernAppListener()
public void onRequest(PageContext pc, PageSource requestedPage, RequestListener rl) throws PageException
ApplicationListener
PageException
public boolean onApplicationStart(PageContext pc) throws PageException
ApplicationListener
PageException
public void onApplicationEnd(CFMLFactory factory, String applicationName) throws PageException
ApplicationListener
PageException
public void onSessionStart(PageContext pc) throws PageException
ApplicationListener
PageException
public boolean hasOnSessionEnd(String applicationName)
hasOnSessionEnd
in class AppListenerSupport
public void onSessionEnd(CFMLFactory factory, String applicationName, String cfid) throws PageException
ApplicationListener
PageException
public void onDebug(PageContext pc) throws PageException
ApplicationListener
PageException
public void onError(PageContext pc, PageException pe)
ApplicationListener
pe
- PageExcpetion Exception that has been throwedpublic void setMode(int mode)
public int getMode()
public boolean hasOnSessionStart(PageContext pc)
hasOnSessionStart
in interface ApplicationListener
hasOnSessionStart
in class AppListenerSupport
Copyright © 2015 Lucee