getFileList
public List getFileList(String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
Returns a
List
of 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 throws
ResourceDoesNotExistException
.
Otherwise a
List
of 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.
destinationDirectory
- directory to list contents of
- A
List
of strings naming the files and directories in the directory denoted by
this abstract pathname. The List
will be empty if the directory is empty.
getIfNewer
public boolean getIfNewer(String resourceName,
File destination,
long timestamp)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
Downloads 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.
resourceName
- destination
- timestamp
-
true
if newer resource has been downloaded, false
if resource
in the repository is older or has the same age.
hasSessionListener
public boolean hasSessionListener(SessionListener listener)
hasTransferListener
public boolean hasTransferListener(TransferListener listener)
isInteractive
public boolean isInteractive()
removeSessionListener
public void removeSessionListener(SessionListener listener)
removeTransferListener
public void removeTransferListener(TransferListener listener)
setInteractive
public void setInteractive(boolean interactive)
supportsDirectoryCopy
public boolean supportsDirectoryCopy()
- whether if this wagon supports directory operations