public interface StreamingWagon extends Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE| Modifier and Type | Method and Description |
|---|---|
boolean |
getIfNewerToStream(String resourceName,
OutputStream stream,
long timestamp)
Downloads specified resource from the repository if it was modified since specified date.
|
void |
getToStream(String resourceName,
OutputStream stream)
Downloads specified resource from the repository to given output stream.
|
void |
putFromStream(InputStream stream,
String destination)
Deprecated.
due to unknown contentLength various http(s) implementation will use a chuncked transfer encoding
mode you must take care you http target server supports that (ngnix don't !).
So in case of http(s) transport layer avoid using this. Will be remove in 3.0
Copy from a local input stream to remote.
|
void |
putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified)
Copy from a local input stream to remote.
|
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getFileList, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, putDirectory, removeSessionListener, removeTransferListener, resourceExists, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopyvoid getToStream(String resourceName, OutputStream stream) throws ResourceDoesNotExistException, TransferFailedException, AuthorizationException
resourceName - stream - TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionboolean getIfNewerToStream(String resourceName, OutputStream stream, long timestamp) throws ResourceDoesNotExistException, TransferFailedException, AuthorizationException
resourceName - stream - timestamp - true if newer resource has been downloaded, false if resource in the
repository is older or has the same age.TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionvoid putFromStream(InputStream stream, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
stream - the local streamdestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionvoid putFromStream(InputStream stream, String destination, long contentLength, long lastModified) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
stream - the local streamdestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.