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/HttpMonitorRemoteExchangeHandler.java

    r1381 r1382  
    3434import org.eclipse.jetty.util.thread.QueuedThreadPool; 
    3535 
     36import de.ugoe.cs.autoquest.httpmonitor.HttpMonitor; 
    3637import de.ugoe.cs.autoquest.httpmonitor.HttpMonitorComponent; 
    3738import de.ugoe.cs.autoquest.httpmonitor.HttpMonitorException; 
     
    4344/** 
    4445 * <p> 
    45  * TODO comment 
     46 * If the exchanges recorded by the proxy are to be transmitted to a central {@link HttpMonitor}, 
     47 * this exchanges handler is used. It is called by the exchange listener on completion of a proxied 
     48 * request/response. It then creates an HTTP request to the central monitor and sends it there. 
     49 * It is initialized with the name of the server and the port on which the central monitor runs. 
     50 * If the exchanges can not be forwarded to the central server, they are discarded. 
    4651 * </p> 
    4752 *  
     
    5560    private static final long serialVersionUID = 1L; 
    5661 
    57     /** */ 
     62    /** 
     63     * <p> 
     64     * the HTTP client used internally to send data to the central server 
     65     * </p> 
     66     */ 
    5867    private HttpClient httpClient; 
    5968     
    60     /** */ 
     69    /** 
     70     * <p> 
     71     * the host name of the central server 
     72     * </p> 
     73     */ 
    6174    private String httpMonitorServer; 
    6275     
    63     /** */ 
     76    /** 
     77     * <p> 
     78     * the port of the central server 
     79     * </p> 
     80     */ 
    6481    private int httpMonitorPort; 
    6582 
    66     /** */ 
     83    /** 
     84     * <p> 
     85     * a set of requests send to the central server for which the response was not received yet 
     86     * </p> 
     87     */ 
    6788    private Set<Request> openRequests = new HashSet<Request>(); 
    6889     
    6990    /** 
    7091     * <p> 
    71      * TODO: comment 
     92     * initializes the exchange handler with the host and port of the central server 
    7293     * </p> 
    7394     * 
    74      * @param httpMonitorServer2 
    75      * @param httpMonitorPort2 
     95     * @param httpMonitorServer the host name of the central server 
     96     * @param httpMonitorPort   the port of the central server 
    7697     */ 
    7798    public HttpMonitorRemoteExchangeHandler(String httpMonitorServer, int httpMonitorPort) { 
     
    187208 
    188209    /** 
    189      *  
     210     * <p> 
     211     * convenience method to create an initialize the utilized HTTP client 
     212     * </p> 
    190213     */ 
    191214    private HttpClient createHttpClient() { 
Note: See TracChangeset for help on using the changeset viewer.