Changeset 1382 for trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/proxy/HttpMonitoringProxy.java
- Timestamp:
- 02/13/14 11:28:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/proxy/HttpMonitoringProxy.java
r1381 r1382 28 28 /** 29 29 * <p> 30 * TODO comment 31 * The HTML monitor starts a web server ({@link HttpMonitorServer}) that receives log messages 32 * of the HTML monitor java script. These messages are logged using the 33 * {@link ExchangeListenerManager}. The class assures that on shutdown e.g. caused by CTRL-C the 34 * server and the log manager are stopped correctly. 30 * The HTTP monitory proxy monitor starts a web server ({@link HttpMonitorServer}) that receives 31 * proxies HTTP messages and response. Each exchange of a request and a response is forwarded to 32 * an exchange handler. The exchange handler is either a local log manager 33 * ({@link HttpMonitorLogManager}) or a connection to an external and central HTTP monitor via 34 * an {@link HttpMonitorRemoteExchangeHandler}. The class ensures that on shutdown e.g. caused 35 * by CTRL-C the server and all other requied components are stopped correctly. 35 36 * </p> 36 37 * … … 48 49 49 50 /** 50 * the web server receiving the log messages51 * the web server receiving the HTTP requests to be proxied 51 52 */ 52 53 private HttpMonitorServer server; 53 54 54 55 /** 55 * the web server receiving the log messages56 * the manager for all currently recorded exchanges 56 57 */ 57 58 private ExchangeListenerManager exchangeListenerManager; 58 59 59 60 /** 60 * 61 * the exchange handler to handle are request/response combinations, i.e., exchanges 61 62 */ 62 63 private HttpMonitorExchangeHandler exchangeHandler; … … 72 73 private Thread shutdownHook; 73 74 74 /** */ 75 /** 76 * the name of the proxied server 77 */ 75 78 private String proxiedServer; 76 79 77 /** */ 80 /** 81 * the port of the proxied server 82 */ 78 83 private int proxiedPort; 79 84 80 /** */ 85 /** 86 * the name of the server where the HTTP monitor runs if the exchanges are not logged locally 87 */ 81 88 private String httpMonitorServer; 82 89 83 /** */ 90 /** 91 * the port of the server where the HTTP monitor runs if the exchanges are not logged locally 92 */ 84 93 private int httpMonitorPort; 85 94 86 95 /** 87 96 * <p> 88 * initializes the monitor with the command line arguments. Those may be the log directory 89 * as first argument and the port to listen on as second 97 * initializes the proxy with the command line arguments. Those are the log directory 98 * as first argument, the port to listen to as second argument, the proxied server and port 99 * as third argument, and either the server and port of the HTTP monitor or the term local as 100 * fourth argument. If the term local is provided as fourth argument, logging of exchanges 101 * takes place locally. 90 102 * </p> 91 103 *
Note: See TracChangeset
for help on using the changeset viewer.