Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.StreamWagon
org.apache.maven.wagon.providers.ftp.FtpWagon
public class FtpWagon
extends StreamWagon
Nested Class Summary | |
class |
Field Summary |
Fields inherited from class org.apache.maven.wagon.AbstractWagon | |
DEFAULT_BUFFER_SIZE , authenticationInfo , interactive , proxyInfo , repository , sessionEventSupport , transferEventSupport |
Method Summary | |
void | |
void |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
List |
|
void | |
boolean |
|
Methods inherited from class org.apache.maven.wagon.StreamWagon | |
closeConnection , fillInputData , fillOutputData , get , getIfNewer , openConnection , put |
public void closeConnection() throws ConnectionException
- Overrides:
- closeConnection in interface StreamWagon
public void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException
- Overrides:
- fillInputData in interface StreamWagon
public void fillOutputData(OutputData outputData) throws TransferFailedException
- Overrides:
- fillOutputData in interface StreamWagon
protected void fireGetCompleted(Resource resource, File localFile)
- Overrides:
- fireGetCompleted in interface AbstractWagon
protected void firePutCompleted(Resource resource, File file)
- Overrides:
- firePutCompleted in interface AbstractWagon
protected void fireSessionDebug(String msg)
- Overrides:
- fireSessionDebug in interface AbstractWagon
public List getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Returns aList
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 throwsResourceDoesNotExistException
. Otherwise aList
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.
- Specified by:
- getFileList in interface Wagon
- Overrides:
- getFileList in interface AbstractWagon
- Parameters:
destinationDirectory
- directory to list contents of
- Returns:
- A
List
of strings naming the files and directories in the directory denoted by this abstract pathname. TheList
will 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 void openConnection() throws ConnectionException, AuthenticationException
- Specified by:
- openConnection in interface Wagon
- Overrides:
- openConnection in interface StreamWagon
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
Check if a remote resource exists
- Specified by:
- resourceExists in interface Wagon
- Overrides:
- resourceExists in interface AbstractWagon
- 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