01: package com.jamonapi.http;
02:
03: import java.io.IOException;
04: import javax.servlet.ServletException;
05:
06: /** Generic monitoring interface used with HttpServletRequest, and HttpServletResponse objects used in servlet containers.
07: * It will also monitor any objects that implement these interfaces as well as any of the methods the implementing classes
08: * add to the interface. Examples would be requests/responses provided by tomcat, jboss, jetty containers.
09: *
10: * @author steve souza
11: *
12: */
13:
14: public interface HttpMon {
15: public HttpMon start();
16:
17: public void stop();
18:
19: public String getDetailLabel();
20:
21: public void setException(Throwable t);
22:
23: public void throwException(Throwable t) throws IOException,
24: ServletException;
25:
26: public Throwable getException();
27:
28: }
|