public final class ClassicAppListener extends AppListenerSupport
CFC_EXTENSION, MODE_CURRENT, MODE_CURRENT_OR_ROOT, MODE_CURRENT2ROOT, MODE_ROOT
Constructor and Description |
---|
ClassicAppListener() |
Modifier and Type | Method and Description |
---|---|
static boolean |
_hasOnApplicationStart() |
static boolean |
_hasOnSessionStart(PageContext pc) |
static void |
_onDebug(PageContext pc) |
static void |
_onError(PageContext pc,
PageException pe) |
static void |
_onTimeout(PageContext pc) |
int |
getMode() |
String |
getType() |
boolean |
hasOnApplicationStart() |
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 cfmlFactory,
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 |
onTimeout(PageContext pc)
will be called when server is run int a timeout
|
void |
setMode(int mode) |
hasOnSessionEnd, onServerEnd, onServerStart, setType
public ClassicAppListener()
public void onRequest(PageContext pc, PageSource requestedPage, RequestListener rl) throws PageException
ApplicationListener
PageException
public boolean onApplicationStart(PageContext pc) throws PageException
ApplicationListener
PageException
public void onSessionStart(PageContext pc) throws PageException
ApplicationListener
PageException
public void onApplicationEnd(CFMLFactory factory, String applicationName) throws PageException
ApplicationListener
PageException
public void onSessionEnd(CFMLFactory cfmlFactory, String applicationName, String cfid) throws PageException
ApplicationListener
PageException
public void onDebug(PageContext pc) throws PageException
ApplicationListener
PageException
public static void _onDebug(PageContext pc) throws PageException
PageException
public void onError(PageContext pc, PageException pe)
ApplicationListener
pe
- PageExcpetion Exception that has been throwedpublic static void _onError(PageContext pc, PageException pe)
public void onTimeout(PageContext pc)
ApplicationListener
onTimeout
in interface ApplicationListener
onTimeout
in class AppListenerSupport
public static void _onTimeout(PageContext pc)
public void setMode(int mode)
public int getMode()
public boolean hasOnApplicationStart()
hasOnApplicationStart
in interface ApplicationListener
hasOnApplicationStart
in class AppListenerSupport
public static boolean _hasOnApplicationStart()
public boolean hasOnSessionStart(PageContext pc)
hasOnSessionStart
in interface ApplicationListener
hasOnSessionStart
in class AppListenerSupport
public static boolean _hasOnSessionStart(PageContext pc)
Copyright © 2015 Lucee