| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface WagonField Summary | |
static String | |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
List |
|
boolean |
|
Repository | |
boolean |
|
boolean |
|
boolean | |
void | |
void |
|
void |
|
void |
|
void |
|
boolean |
|
void |
|
boolean | |
public void connect(Repository source, AuthenticationInfo authenticationInfo) throws ConnectionException, AuthenticationException
public void connect(Repository source, AuthenticationInfo authenticationInfo, ProxyInfo proxyInfo) throws ConnectionException, AuthenticationException
public void connect(Repository source, ProxyInfo proxyInfo) throws ConnectionException, AuthenticationException
public void get(String resourceName,
File destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionDownloads specified resource from the repository to given file.
- Parameters:
resourceName-destination-
public List getFileList(String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionReturns aListof strings naming the files and directories in the directory denoted by this abstract pathname. If this abstract pathname does not denote a directory, or does not exist, then this method throwsResourceDoesNotExistException. Otherwise aListof strings is returned, one for each file or directory in the directory. Names denoting the directory itself and the directory's parent directory are not included in the result. Each string is a file name rather than a complete path. There is no guarantee that the name strings in the resulting list will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
- Parameters:
destinationDirectory- directory to list contents of
- Returns:
- A
Listof strings naming the files and directories in the directory denoted by this abstract pathname. TheListwill be empty if the directory is empty.
- Throws:
TransferFailedException- if there's an error trying to access the remote sideResourceDoesNotExistException- if destinationDirectory does not exist or is not a directoryAuthorizationException- if not authorized to list the contents of the directory
public boolean getIfNewer(String resourceName,
File destination,
long timestamp)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionDownloads specified resource from the repository if it was modfified since specified date. The date is measured in milliseconds, between the current time and midnight, January 1, 1970 UTC and aliged to GMT timezone.
- Parameters:
resourceName-destination-timestamp-
- Returns:
trueif newer resource has been downloaded,falseif resource in the repository is older or has the same age.
public boolean isInteractive()
public void put(File source,
String destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionCopy a file from local system to remote
- Parameters:
source- the local filedestination- the remote destination
public void putDirectory(File sourceDirectory,
String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionCopy a directory from local system to remote
- Parameters:
sourceDirectory- the local directorydestinationDirectory- the remote destination
public boolean resourceExists(String resourceName)
throws TransferFailedException,
AuthorizationExceptionCheck if a remote resource exists
- Parameters:
resourceName-
- Returns:
- whether the resource exists or not
- Throws:
TransferFailedException- if there's an error trying to access the remote sideAuthorizationException- if not authorized to verify the existence of the resource
public void setInteractive(boolean interactive)
public boolean supportsDirectoryCopy()
- Returns:
- whether if this wagon supports directory operations