org.lastbamboo.common.http.client
Class HttpClientRunner
java.lang.Object
org.lastbamboo.common.http.client.HttpClientRunner
- All Implemented Interfaces:
- Runnable
public final class HttpClientRunner
- extends Object
- implements Runnable
Performs an HTTP download using HttpClient.
|
Constructor Summary |
HttpClientRunner(org.littleshoot.util.InputStreamHandler handler,
CommonsHttpClient client,
org.apache.commons.httpclient.HttpMethod method,
HttpListener listener)
Creates a new HTTP client Runnable with the specified
collaborating classes. |
|
Method Summary |
void |
run()
Performs the download on a separate thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpClientRunner
public HttpClientRunner(org.littleshoot.util.InputStreamHandler handler,
CommonsHttpClient client,
org.apache.commons.httpclient.HttpMethod method,
HttpListener listener)
- Creates a new HTTP client
Runnable with the specified
collaborating classes.
- Parameters:
handler - The class that should receive the InputStream
for the HTTP message body.client - The HttpClient instance that will send the
HTTP request.method - The HTTP method handler for the request. This could be,
"GET" or "HEAD", for example.listener - The listener for HTTP events during the download.
run
public void run()
- Performs the download on a separate thread.
- Specified by:
run in interface Runnable
Copyright © 2013 LittleShoot. All Rights Reserved.