Modifier and Type | Method and Description |
---|---|
protected void |
WagonTestCase.assertNotExists(Wagon wagon,
String resourceName)
Assert that a resource does not exist in the remote wagon system
|
protected void |
WagonTestCase.assertResourcesAreInRemoteSide(Wagon wagon,
List<String> resourceNames) |
protected void |
StreamWagon.checkInputStream(InputStream is,
Resource resource) |
protected void |
StreamWagon.checkOutputStream(Resource resource,
OutputStream os) |
protected void |
AbstractWagon.createParentDirectories(File destination) |
abstract void |
StreamWagon.fillInputData(InputData inputData) |
abstract void |
StreamWagon.fillOutputData(OutputData outputData) |
protected void |
AbstractWagon.finishGetTransfer(Resource resource,
InputStream input,
OutputStream output) |
protected void |
AbstractWagon.finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
void |
Wagon.get(String resourceName,
File destination)
Downloads specified resource from the repository to given file.
|
void |
StreamWagon.get(String resourceName,
File destination) |
List<String> |
Wagon.getFileList(String destinationDirectory)
Returns a
List of strings naming the files and directories in the directory denoted by
this abstract pathname. |
List<String> |
AbstractWagon.getFileList(String destinationDirectory) |
boolean |
Wagon.getIfNewer(String resourceName,
File destination,
long timestamp)
Downloads specified resource from the repository
if it was modified since specified date.
|
boolean |
StreamWagon.getIfNewer(String resourceName,
File destination,
long timestamp) |
boolean |
StreamWagon.getIfNewerToStream(String resourceName,
OutputStream stream,
long timestamp) |
boolean |
StreamingWagon.getIfNewerToStream(String resourceName,
OutputStream stream,
long timestamp)
Downloads specified resource from the repository if it was modified since specified date.
|
protected InputStream |
StreamWagon.getInputStream(Resource resource) |
protected OutputStream |
StreamWagon.getOutputStream(Resource resource) |
void |
StreamWagon.getToStream(String resourceName,
OutputStream stream) |
void |
StreamingWagon.getToStream(String resourceName,
OutputStream stream)
Downloads specified resource from the repository to given output stream.
|
protected void |
AbstractWagon.getTransfer(Resource resource,
File destination,
InputStream input) |
protected void |
AbstractWagon.getTransfer(Resource resource,
File destination,
InputStream input,
boolean closeInput,
int maxSize)
Deprecated.
|
protected void |
AbstractWagon.getTransfer(Resource resource,
File destination,
InputStream input,
boolean closeInput,
long maxSize) |
protected void |
AbstractWagon.getTransfer(Resource resource,
OutputStream output,
InputStream input) |
protected void |
AbstractWagon.getTransfer(Resource resource,
OutputStream output,
InputStream input,
boolean closeInput,
int maxSize)
Deprecated.
|
protected void |
AbstractWagon.getTransfer(Resource resource,
OutputStream output,
InputStream input,
boolean closeInput,
long maxSize) |
protected void |
AbstractWagon.postProcessListeners(Resource resource,
File source,
int requestType)
This method is used if you are not streaming the transfer, to make sure any listeners dependent on state
(eg checksum observers) succeed.
|
void |
Wagon.put(File source,
String destination)
Copy a file from local system to remote
|
void |
StreamWagon.put(File source,
String resourceName) |
void |
Wagon.putDirectory(File sourceDirectory,
String destinationDirectory)
Copy a directory from local system to remote
|
void |
AbstractWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
static void |
WagonUtils.putDirectory(File dir,
Wagon wagon,
boolean includeBasdir)
Deprecated.
|
protected void |
StreamWagon.putFromStream(InputStream stream,
Resource resource) |
void |
StreamWagon.putFromStream(InputStream stream,
String destination) |
void |
StreamingWagon.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 |
StreamWagon.putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified) |
void |
StreamingWagon.putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified)
Copy from a local input stream to remote.
|
protected void |
AbstractWagon.putTransfer(Resource resource,
File source,
OutputStream output,
boolean closeOutput) |
protected void |
AbstractWagon.putTransfer(Resource resource,
InputStream input,
OutputStream output,
boolean closeOutput) |
boolean |
Wagon.resourceExists(String resourceName)
Check if a remote resource exists
|
boolean |
AbstractWagon.resourceExists(String resourceName) |
static String |
WagonUtils.toString(String resource,
Wagon wagon)
Deprecated.
|
protected void |
AbstractWagon.transfer(Resource resource,
File source,
OutputStream output,
boolean closeOutput)
Write from
File to OutputStream |
Modifier and Type | Method and Description |
---|---|
void |
FileWagon.fillInputData(InputData inputData) |
void |
FileWagon.fillOutputData(OutputData outputData) |
List<String> |
FileWagon.getFileList(String destinationDirectory) |
void |
FileWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
FileWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
void |
FtpWagon.fillInputData(InputData inputData) |
void |
FtpWagon.fillOutputData(OutputData outputData) |
List<String> |
FtpWagon.getFileList(String destinationDirectory) |
void |
FtpWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
FtpWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
protected int |
AbstractHttpClientWagon.backoff(int wait,
String url) |
void |
LightweightHttpWagon.fillInputData(InputData inputData) |
void |
AbstractHttpClientWagon.fillInputData(InputData inputData) |
void |
LightweightHttpWagon.fillOutputData(OutputData outputData) |
void |
AbstractHttpClientWagon.fillOutputData(OutputData outputData) |
protected void |
LightweightHttpWagon.finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
List<String> |
LightweightHttpWagon.getFileList(String destinationDirectory) |
List<String> |
HttpWagon.getFileList(String destinationDirectory) |
void |
AbstractHttpClientWagon.put(File source,
String resourceName) |
protected void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
Resource resource) |
void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
String destination) |
void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified) |
boolean |
LightweightHttpWagon.resourceExists(String resourceName) |
boolean |
AbstractHttpClientWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
void |
ScmWagon.get(String resourceName,
File destination) |
List<String> |
ScmWagon.getFileList(String resourcePath) |
boolean |
ScmWagon.getIfNewer(String resourceName,
File destination,
long timestamp)
Not implemented
|
void |
ScmWagon.put(File source,
String targetName) |
void |
ScmWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
ScmWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
List<String> |
ScpHelper.getFileList(String destinationDirectory,
Repository repository) |
List<String> |
LSParser.parseFiles(String rawLS)
Parse a raw "ls -FlA", and obtain the list of files.
|
void |
ScpHelper.putDirectory(Wagon wagon,
File sourceDirectory,
String destinationDirectory)
Put a whole directory content, by transferring a unique zip file and uncompressing it
on the target ssh server with
unzip command. |
boolean |
ScpHelper.resourceExists(String resourceName,
Repository repository) |
Modifier and Type | Method and Description |
---|---|
void |
ScpExternalWagon.get(String resourceName,
File destination) |
List<String> |
ScpExternalWagon.getFileList(String destinationDirectory) |
boolean |
ScpExternalWagon.getIfNewer(String resourceName,
File destination,
long timestamp) |
void |
ScpExternalWagon.put(File source,
String destination) |
void |
ScpExternalWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
ScpExternalWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
void |
SftpWagon.fillInputData(InputData inputData) |
void |
ScpWagon.fillInputData(InputData inputData) |
void |
SftpWagon.fillOutputData(OutputData outputData) |
void |
ScpWagon.fillOutputData(OutputData outputData) |
protected void |
ScpWagon.finishGetTransfer(Resource resource,
InputStream input,
OutputStream output) |
protected void |
SftpWagon.finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
protected void |
ScpWagon.finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
List<String> |
SftpWagon.getFileList(String destinationDirectory) |
List<String> |
AbstractJschWagon.getFileList(String destinationDirectory) |
protected void |
ScpWagon.getTransfer(Resource resource,
OutputStream output,
InputStream input,
boolean closeInput,
int maxSize) |
protected void |
AbstractJschWagon.handleGetException(Resource resource,
Exception e) |
void |
SftpWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
void |
AbstractJschWagon.putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
SftpWagon.resourceExists(String resourceName) |
boolean |
AbstractJschWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractHttpClientWagon.fillInputData(InputData inputData) |
void |
AbstractHttpClientWagon.fillOutputData(OutputData outputData) |
List<String> |
WebDavWagon.getFileList(String destinationDirectory) |
void |
WebDavWagon.put(File source,
String resourceName) |
void |
AbstractHttpClientWagon.put(File source,
String resourceName) |
void |
WebDavWagon.putDirectory(File sourceDirectory,
String destinationDirectory)
Copy a directory from local system to remote webdav server
|
protected void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
Resource resource) |
void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
String destination) |
void |
AbstractHttpClientWagon.putFromStream(InputStream stream,
String destination,
long contentLength,
long lastModified) |
boolean |
AbstractHttpClientWagon.resourceExists(String resourceName) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
HtmlFileListParser.parseFileList(String baseurl,
InputStream stream)
Fetches a raw HTML from a provided InputStream, parses it, and returns the file list.
|
Modifier and Type | Method and Description |
---|---|
void |
GetWagonTests.basic() |
void |
GetWagonTests.forbidden() |
void |
GetWagonTests.highLatencyHighTimeout() |
void |
GetWagonTests.highLatencyLowTimeout() |
void |
GetWagonTests.infinitePermanentMove() |
void |
GetWagonTests.inifiniteLatencyTimeout() |
void |
GetWagonTests.missing() |
void |
GetWagonTests.oneLevelPermanentMove() |
void |
GetWagonTests.oneLevelTemporaryMove() |
void |
GetWagonTests.permanentMove_TooManyRedirects_limit20()
NOTE: This test depends on a
WagonTestCaseConfigurator configuration to limit redirects to 20. |
void |
GetWagonTests.proxied() |
void |
GetWagonTests.sixLevelPermanentMove() |
void |
GetWagonTests.sixLevelTemporaryMove() |
void |
GetWagonTests.successfulAuthentication() |
protected void |
GetWagonTests.testAuthFailure(String path,
AuthenticationInfo info) |
protected void |
GetWagonTests.testSuccessfulGet(String path) |
protected void |
GetWagonTests.testSuccessfulGet(String path,
String checkPath) |
void |
GetWagonTests.unsuccessfulAuthentication() |
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.