|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectPageFlowEventReporter
DefaultPageFlowEventReporter
public class DefaultPageFlowEventReporter
Default event reporter. Logs every event when the log level is set to "debug" or "trace".
| Nested Class Summary | |
|---|---|
protected static class |
DefaultPageFlowEventReporter.LogMsg
|
| Constructor Summary | |
|---|---|
protected |
DefaultPageFlowEventReporter(ServletContext servletContext)
|
| Method Summary | |
|---|---|
void |
actionRaised(RequestContext requestContext,
FlowController flowController,
ActionMapping mapping,
ActionForm form)
Event fired when an action is raised on a FlowController (a page flow or a shared flow). |
void |
actionSuccess(RequestContext requestContext,
FlowController flowController,
ActionMapping mapping,
ActionForm form,
ActionForward result,
long timeTakenMillis)
Event fired when an action successfully completes on a FlowController (a page flow or a shared flow). |
void |
beginActionRequest(RequestContext requestContext)
Event fired at the beginning of an action request. |
void |
beginPageRequest(RequestContext requestContext)
Event fired at the end of an action request. |
void |
endActionRequest(RequestContext requestContext,
long timeTakenMillis)
Event fired at the end of an action request. |
void |
endPageRequest(RequestContext requestContext,
long timeTakenMillis)
Event fired at the end of a page request. |
void |
exceptionHandled(RequestContext requestContext,
Throwable ex,
ActionMapping actionMapping,
ActionForm form,
FlowController flowController,
ActionForward result,
long timeTakenMillis)
Event fired when an exception is handled successfully during processing of an action request. |
void |
exceptionRaised(RequestContext requestContext,
Throwable ex,
ActionMapping actionMapping,
ActionForm form,
FlowController flowController)
Event fired when an exception is raised during processing of an action request. |
void |
flowControllerCreated(RequestContext requestContext,
FlowController flowController)
Event fired when a FlowController (a page flow or a shared flow) is created. |
void |
flowControllerDestroyed(FlowController flowController,
Object storageLocation)
Event fired when a FlowController (a page flow or a shared flow) is "destroyed", i.e., removed from wherever it is being stored. |
void |
flowControllerRegistered(String modulePath,
String controllerClassName,
ModuleConfig moduleConfig)
Event fired when a page flow or shared flow is registered lazily (once per webapp deployment). |
| Methods inherited from class PageFlowEventReporter |
|---|
getServletContext |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultPageFlowEventReporter(ServletContext servletContext)
| Method Detail |
|---|
public void actionRaised(RequestContext requestContext,
FlowController flowController,
ActionMapping mapping,
ActionForm form)
PageFlowEventReporter
actionRaised in class PageFlowEventReporterrequestContext - the current request context.flowController - the FlowController on which the action is being raised (a
PageFlowController or a SharedFlowController).mapping - the org.apache.struts.action.ActionMapping that represents the action being
raised. The name of the action, prefixed by a '/', can be found by calling getPath
on this object.form - the form bean that was passed to the action, or null if there was none.
public void actionSuccess(RequestContext requestContext,
FlowController flowController,
ActionMapping mapping,
ActionForm form,
ActionForward result,
long timeTakenMillis)
PageFlowEventReporter
actionSuccess in class PageFlowEventReporterrequestContext - the current request context.flowController - the FlowController on which the action was raised (a
PageFlowController or a SharedFlowController).mapping - the org.apache.struts.action.ActionMapping that represents the action that was
raised. The name of the action, prefixed by a '/', can be found by calling getPath
on this object.form - the form bean that was passed to the action, or null if there was none.result - the ActionForward result returned from the action.timeTakenMillis - the length of time in milliseconds for the action to be run.
public void exceptionRaised(RequestContext requestContext,
Throwable ex,
ActionMapping actionMapping,
ActionForm form,
FlowController flowController)
PageFlowEventReporter
exceptionRaised in class PageFlowEventReporterrequestContext - the current request context.ex - the Throwable that was raised.actionMapping - the org.apache.struts.action.ActionMapping that represents the action that was
raised. The name of the action, prefixed by a '/', can be found by calling getPath
on this object. This parameter will be null if the request did not get to the point
where an action was actuallly raised.form - the form bean that was passed to the action, or null if there was none.flowController - the FlowController associated with the action request. This parameter will be
null if the request did not get to the point where a FlowController could be created or
looked up.PageFlowEventReporter.beginActionRequest(org.apache.beehive.netui.pageflow.RequestContext)
public void exceptionHandled(RequestContext requestContext,
Throwable ex,
ActionMapping actionMapping,
ActionForm form,
FlowController flowController,
ActionForward result,
long timeTakenMillis)
PageFlowEventReporter
exceptionHandled in class PageFlowEventReporterrequestContext - the current request context.ex - the Throwable that was raised.actionMapping - the org.apache.struts.action.ActionMapping that represents the action that was
raised. The name of the action, prefixed by a '/', can be found by calling getPath
on this object. This parameter will be null if the request did not get to the point
where an action was actuallly raised.form - the form bean that was passed to the action, or null if there was none.flowController - the FlowController associated with the action request. This parameter will be
null if the request did not get to the point where a FlowController could be created or
looked up.result - the ActionForward result returned from the exception handler.timeTakenMillis - the length of time in milliseconds for the exception to be handled.PageFlowEventReporter.beginActionRequest(org.apache.beehive.netui.pageflow.RequestContext)
public void flowControllerCreated(RequestContext requestContext,
FlowController flowController)
PageFlowEventReporter
flowControllerCreated in class PageFlowEventReporterrequestContext - the current request context.flowController - the FlowController (a PageFlowController or a SharedFlowController)
that was created.
public void flowControllerDestroyed(FlowController flowController,
Object storageLocation)
PageFlowEventReporter
flowControllerDestroyed in class PageFlowEventReporterflowController - the FlowController (a PageFlowController or a SharedFlowController)
that is being destroyed.storageLocation - The storage location. For session-scoped FlowControllers, this is a
javax.servlet.http.HttpSession.public void beginActionRequest(RequestContext requestContext)
PageFlowEventReporter
beginActionRequest in class PageFlowEventReporterrequestContext - the current request context.
public void endActionRequest(RequestContext requestContext,
long timeTakenMillis)
PageFlowEventReporter
endActionRequest in class PageFlowEventReporterrequestContext - the current request context.timeTakenMillis - the length of time in milliseconds for the action request to be processed.public void beginPageRequest(RequestContext requestContext)
PageFlowEventReporter
beginPageRequest in class PageFlowEventReporterrequestContext - the current request context.
public void endPageRequest(RequestContext requestContext,
long timeTakenMillis)
PageFlowEventReporter
endPageRequest in class PageFlowEventReporterrequestContext - the current request context.timeTakenMillis - the length of time in milliseconds for the page request to be processed.
public void flowControllerRegistered(String modulePath,
String controllerClassName,
ModuleConfig moduleConfig)
PageFlowEventReporter
flowControllerRegistered in class PageFlowEventReportermodulePath - the module path, which is the "parent directory" for actions on the controller.controllerClassName - the name of the controller class.moduleConfig - the Struts ModuleConfig that corresponds to the controller.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||