Ignore:
Timestamp:
02/13/14 11:28:18 (10 years ago)
Author:
pharms
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/proxy/HttpMonitoringProxy.java

    r1381 r1382  
    2828/** 
    2929 * <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. 
    3536 * </p> 
    3637 *  
     
    4849     
    4950    /** 
    50      * the web server receiving the log messages 
     51     * the web server receiving the HTTP requests to be proxied 
    5152     */ 
    5253    private HttpMonitorServer server; 
    5354     
    5455    /** 
    55      * the web server receiving the log messages 
     56     * the manager for all currently recorded exchanges 
    5657     */ 
    5758    private ExchangeListenerManager exchangeListenerManager; 
    5859     
    5960    /** 
    60      *  
     61     *  the exchange handler to handle are request/response combinations, i.e., exchanges 
    6162     */ 
    6263    private HttpMonitorExchangeHandler exchangeHandler; 
     
    7273    private Thread shutdownHook; 
    7374 
    74     /** */ 
     75    /** 
     76     * the name of the proxied server 
     77     */ 
    7578    private String proxiedServer; 
    7679     
    77     /** */ 
     80    /** 
     81     * the port of the proxied server 
     82     */ 
    7883    private int proxiedPort; 
    7984     
    80     /** */ 
     85    /** 
     86     * the name of the server where the HTTP monitor runs if the exchanges are not logged locally 
     87     */ 
    8188    private String httpMonitorServer; 
    8289     
    83     /** */ 
     90    /** 
     91     * the port of the server where the HTTP monitor runs if the exchanges are not logged locally 
     92     */ 
    8493    private int httpMonitorPort; 
    8594     
    8695    /** 
    8796     * <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. 
    90102     * </p> 
    91103     * 
Note: See TracChangeset for help on using the changeset viewer.