public class WebDavWagon extends AbstractHttpClientWagon
WebDavWagon
Allows using a webdav remote repository for downloads and deployments
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONTINUE_ON_FAILURE_PROPERTY |
connectionManager, GMT_TIME_ZONE, SC_NULLauthenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupportDEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE| Constructor and Description |
|---|
WebDavWagon() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFileList(String destinationDirectory)
Returns a
List of strings naming the files and directories in the directory denoted by
this abstract pathname. |
String |
getURL(Repository repository)
getUrl
Implementors can override this to remove unwanted parts of the url such as role-hints
|
protected void |
mkdirs(String dir)
Create directories in server as needed.
|
void |
put(File source,
String resourceName)
Copy a file from local system to remote
|
void |
putDirectory(File sourceDirectory,
String destinationDirectory)
Copy a directory from local system to remote webdav server
|
boolean |
supportsDirectoryCopy()
This wagon supports directory copying
|
calculateRelocatedUrl, cleanupGetTransfer, closeConnection, execute, fillInputData, fillOutputData, getClient, getHttpConfiguration, getHttpHeaders, openConnectionInternal, putFromStream, putFromStream, putFromStream, resourceExists, setConnectionManager, setHeaders, setHttpConfiguration, setHttpHeaders, setParameterscheckInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStreamaddSessionListener, addTransferListener, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, transfer, transfer, transfer, transferclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeoutprotected static final String CONTINUE_ON_FAILURE_PROPERTY
public WebDavWagon()
public boolean supportsDirectoryCopy()
supportsDirectoryCopy in interface WagonsupportsDirectoryCopy in class AbstractWagontrue alwaysprotected void mkdirs(String dir) throws IOException
mkdirs in class AbstractHttpClientWagondir - path to be created in server from repository basedirIOExceptionorg.apache.commons.httpclient.HttpExceptionTransferFailedExceptionpublic void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory in interface WagonputDirectory in class AbstractWagonsourceDirectory - the local directorydestinationDirectory - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionpublic List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
WagonList 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.
getFileList in interface WagongetFileList in class AbstractWagondestinationDirectory - directory to list contents ofList 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.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 directorypublic String getURL(Repository repository)
AbstractHttpClientWagongetURL in class AbstractHttpClientWagonpublic void put(File source, String resourceName) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Wagonput in interface Wagonput in class AbstractHttpClientWagonsource - the local fileresourceName - the remote destinationTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionCopyright © 2003–2013 The Apache Software Foundation. All rights reserved.