| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.maven.wagon.AbstractWagonorg.apache.maven.wagon.providers.webdav.WebDavWagonpublic class WebDavWagonextends AbstractWagonField Summary |
Fields inherited from class org.apache.maven.wagon.AbstractWagon | |
DEFAULT_BUFFER_SIZE, authenticationInfo, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport | |
Constructor Summary | |
Method Summary | |
void |
|
void |
|
boolean |
|
List |
|
boolean |
|
void |
|
void |
|
void |
|
boolean |
|
boolean |
|
public void closeConnection()
throws ConnectionExceptionCloses the connection
- Overrides:
- closeConnection in interface AbstractWagon
- Throws:
ConnectionException-
public void get(String resourceName,
File destination)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionpublic boolean get(String resourceName,
File destination,
long timestamp)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionGet a file from remote server
- Parameters:
resourceName-destination-timestamp- the timestamp to check against, only downloading if newer. If0, always download
- Returns:
trueif newer version was downloaded,falseotherwise.
public List getFileList(String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
- getFileList in interface Wagon
- Overrides:
- getFileList in interface AbstractWagon
public boolean getIfNewer(String resourceName,
File destination,
long timestamp)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationException
- Specified by:
- getIfNewer in interface Wagon
public void openConnection()
throws AuthenticationException,
ConnectionExceptionOpens a connection via web-dav resource
- Specified by:
- openConnection in interface Wagon
- Throws:
AuthenticationException-ConnectionException-
public void put(File source,
String resourceName)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionPuts a file into the remote repository
- Parameters:
source- the file to transferresourceName- the name of the resource
public void putDirectory(File sourceDirectory,
String destinationDirectory)
throws TransferFailedException,
ResourceDoesNotExistException,
AuthorizationExceptionCopy a directory from local system to remote webdav server
- Specified by:
- putDirectory in interface Wagon
- Overrides:
- putDirectory in interface AbstractWagon
- Parameters:
sourceDirectory- the local directorydestinationDirectory- the remote destination
public boolean resourceExists(String resourceName)
throws TransferFailedException,
AuthorizationException
- Specified by:
- resourceExists in interface Wagon
- Overrides:
- resourceExists in interface AbstractWagon
public boolean supportsDirectoryCopy()
This wagon supports directory copying
- Specified by:
- supportsDirectoryCopy in interface Wagon
- Overrides:
- supportsDirectoryCopy in interface AbstractWagon
- Returns:
truealways