public class TransferService extends Object
| Constructor and Description |
|---|
TransferService(org.apache.http.client.HttpClient client,
List<ConnectionListener> connectionListeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
get(String url,
StreamReceiver receiver,
List<Range> rangeList,
ProgressListener listener,
org.apache.http.protocol.HttpContext context) |
int |
getTimeout() |
HttpResult |
put(String encodedUrl,
InputStream content,
Long contentLength,
String contentType,
IfMatchCheck etagMatch,
ProgressListener listener,
org.apache.http.protocol.HttpContext context)
Attempt to PUT a file to the server.
|
void |
setTimeout(int timeout) |
public TransferService(org.apache.http.client.HttpClient client,
List<ConnectionListener> connectionListeners)
public void get(String url, StreamReceiver receiver, List<Range> rangeList, ProgressListener listener, org.apache.http.protocol.HttpContext context) throws HttpException, Utils.CancelledException, NotAuthorizedException, BadRequestException, ConflictException, NotFoundException
public HttpResult put(String encodedUrl, InputStream content, Long contentLength, String contentType, IfMatchCheck etagMatch, ProgressListener listener, org.apache.http.protocol.HttpContext context)
encodedUrl - content - contentLength - contentType - etag - - expected etag on the server if overwriting, or null if a
new filelistener - context - public int getTimeout()
public void setTimeout(int timeout)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.