@Immutable public class HttpDriver extends FsDriver
Subclasses must be thread-safe and should be immutable!
newClient()| Constructor and Description |
|---|
HttpDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.HttpResponse |
executeGet(HttpNode entry)
Executes the GET request method for the given URI.
|
protected org.apache.http.HttpResponse |
executeHead(HttpNode entry)
Executes the HEAD request method for the given URI.
|
protected org.apache.http.client.HttpClient |
getClient()
Returns the cached http client obtained by calling
newClient(). |
protected org.apache.http.client.HttpClient |
newClient()
Returns a new http client.
|
FsController |
newController(FsManager manager,
FsModel model,
FsController parent) |
decorate, isArchiveDriver, newModel, toStringprotected org.apache.http.HttpResponse executeGet(HttpNode entry) throws IOException
getClient().execute(entry.newGet()).IOExceptionprotected org.apache.http.HttpResponse executeHead(HttpNode entry) throws IOException
getClient().execute(entry.newHead()).IOExceptionprotected final org.apache.http.client.HttpClient getClient()
newClient().newClient().protected org.apache.http.client.HttpClient newClient()
The implementation in the class HttpDriver simply returns
new DefaultHttpClient(new ThreadSafeClientConnManager()).
If you need special configuration, e.g. for authentication or caching,
then you should override this method.
public FsController newController(FsManager manager, FsModel model, @CheckForNull FsController parent)
Copyright © 2005–2014 Schlichtherle IT Services. All rights reserved.