KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > performance > http > load > HttpClientAdapter


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.performance.http.load;
5
6 import org.apache.commons.httpclient.HttpState;
7
8 public class HttpClientAdapter {
9   private final HttpState session;
10   private String JavaDoc host;
11
12   public HttpClientAdapter(HttpState session, String JavaDoc host) {
13     this.session = session;
14     this.host = host;
15   }
16
17   HttpState getSession() {
18     return session;
19   }
20
21   public synchronized void setHost(String JavaDoc host) {
22     this.host = host;
23   }
24
25   public synchronized String JavaDoc getHost() {
26     return host;
27   }
28 }
Popular Tags