Changeset 1382 for trunk/autoquest-httpmonitor/src/main/java/de/ugoe/cs/autoquest/httpmonitor/proxy/HttpMonitorRemoteExchangeHandler.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/HttpMonitorRemoteExchangeHandler.java
r1381 r1382 34 34 import org.eclipse.jetty.util.thread.QueuedThreadPool; 35 35 36 import de.ugoe.cs.autoquest.httpmonitor.HttpMonitor; 36 37 import de.ugoe.cs.autoquest.httpmonitor.HttpMonitorComponent; 37 38 import de.ugoe.cs.autoquest.httpmonitor.HttpMonitorException; … … 43 44 /** 44 45 * <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. 46 51 * </p> 47 52 * … … 55 60 private static final long serialVersionUID = 1L; 56 61 57 /** */ 62 /** 63 * <p> 64 * the HTTP client used internally to send data to the central server 65 * </p> 66 */ 58 67 private HttpClient httpClient; 59 68 60 /** */ 69 /** 70 * <p> 71 * the host name of the central server 72 * </p> 73 */ 61 74 private String httpMonitorServer; 62 75 63 /** */ 76 /** 77 * <p> 78 * the port of the central server 79 * </p> 80 */ 64 81 private int httpMonitorPort; 65 82 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 */ 67 88 private Set<Request> openRequests = new HashSet<Request>(); 68 89 69 90 /** 70 91 * <p> 71 * TODO: comment92 * initializes the exchange handler with the host and port of the central server 72 93 * </p> 73 94 * 74 * @param httpMonitorServer 275 * @param httpMonitorPort 295 * @param httpMonitorServer the host name of the central server 96 * @param httpMonitorPort the port of the central server 76 97 */ 77 98 public HttpMonitorRemoteExchangeHandler(String httpMonitorServer, int httpMonitorPort) { … … 187 208 188 209 /** 189 * 210 * <p> 211 * convenience method to create an initialize the utilized HTTP client 212 * </p> 190 213 */ 191 214 private HttpClient createHttpClient() {
Note: See TracChangeset
for help on using the changeset viewer.