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.providers.webdav.WebDavWagon
public class WebDavWagon
extends AbstractWagon
Field 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 ConnectionException
Closes the connection
- Overrides:
- closeConnection in interface AbstractWagon
- Throws:
ConnectionException
-
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
public boolean get(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Get a file from remote server
- Parameters:
resourceName
-destination
-timestamp
- the timestamp to check against, only downloading if newer. If0
, always download
- Returns:
true
if newer version was downloaded,false
otherwise.
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, ConnectionException
Opens 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, AuthorizationException
Puts 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, AuthorizationException
Copy 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:
true
always