1 18 package org.apache.beehive.netui.pageflow; 19 20 import org.apache.struts.action.ActionMapping; 21 import org.apache.struts.action.ActionForm; 22 import org.apache.struts.action.ActionForward; 23 24 import javax.servlet.ServletContext ; 25 import javax.servlet.ServletResponse ; 26 import javax.servlet.ServletRequest ; 27 28 29 32 public abstract class PageFlowEventReporter 33 { 34 private ServletContext _servletContext; 35 36 protected PageFlowEventReporter( ServletContext servletContext ) 37 { 38 _servletContext = servletContext; 39 } 40 41 public abstract void actionRaised( FlowController flowController, ActionMapping mapping, ActionForm form, 42 ServletRequest request, ServletResponse response ); 43 44 public abstract void actionSuccess( FlowController flowController, ActionMapping mapping, ActionForm form, 45 ServletRequest request, ServletResponse response, ActionForward result, 46 long timeTakenMillis ); 47 48 public abstract void exceptionRaised( Throwable ex, ActionMapping actionMapping, ActionForm form, 49 FlowController flowController, ServletRequest request, 50 ServletResponse response ); 51 52 public abstract void exceptionHandled( Throwable ex, ActionMapping actionMapping, ActionForm form, 53 FlowController flowController, ServletRequest request, 54 ServletResponse response, ActionForward result, 55 long timeTakenMillis ); 56 57 public abstract void flowControllerCreated( FlowController flowController, ServletRequest request, 58 ServletResponse response ); 59 60 public abstract void flowControllerDestroyed( FlowController flowController ); 61 62 public abstract void beginActionRequest( ServletRequest request, ServletResponse response ); 63 64 public abstract void endActionRequest( ServletRequest request, ServletResponse response, long timeTakenMillis ); 65 66 public abstract void beginPageRequest( ServletRequest request, ServletResponse response ); 67 68 public abstract void endPageRequest( ServletRequest request, ServletResponse response, long timeTakenMillis ); 69 70 protected ServletContext getServletContext() 71 { 72 return _servletContext; 73 } 74 } 75 | Popular Tags |