|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StreamingWagon
Field Summary |
---|
Fields inherited from interface org.apache.maven.wagon.Wagon |
---|
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.apache.maven.wagon.Wagon |
---|
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, supportsDirectoryCopy |
Method Detail |
---|
void getToStream(String resourceName, OutputStream stream) throws ResourceDoesNotExistException, TransferFailedException, AuthorizationException
resourceName
- stream
-
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
AuthorizationException
boolean 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.
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
AuthorizationException
void putFromStream(InputStream stream, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
stream
- the local streamdestination
- the remote destination
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
void putFromStream(InputStream stream, String destination, long contentLength, long lastModified) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
stream
- the local streamdestination
- the remote destination
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |