WagonStreamWagonpublic interface StreamingWagon extends Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE| Modifier and Type | Method | Description |
|---|---|---|
boolean |
getIfNewerToStream(java.lang.String resourceName,
java.io.OutputStream stream,
long timestamp) |
Downloads specified resource from the repository if it was modified since specified date.
|
void |
getToStream(java.lang.String resourceName,
java.io.OutputStream stream) |
Downloads specified resource from the repository to given output stream.
|
void |
putFromStream(java.io.InputStream stream,
java.lang.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 !).
|
void |
putFromStream(java.io.InputStream stream,
java.lang.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(java.lang.String resourceName,
java.io.OutputStream stream)
throws ResourceDoesNotExistException,
TransferFailedException,
AuthorizationException
resourceName - stream - TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionAuthorizationExceptionboolean getIfNewerToStream(java.lang.String resourceName,
java.io.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(java.io.InputStream stream,
java.lang.String destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
stream - the local streamdestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionvoid putFromStream(java.io.InputStream stream,
java.lang.String destination,
long contentLength,
long lastModified)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
stream - the local streamdestination - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException