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 |
SC_TOO_MANY_REQUESTS
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
Constructor and Description |
---|
WebDavWagon() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getFileList(String destinationDirectory) |
String |
getURL(Repository repository) |
protected void |
mkdirs(String dir)
Create directories in server as needed.
|
void |
put(File source,
String resourceName) |
void |
putDirectory(File sourceDirectory,
String destinationDirectory)
Copy a directory from local system to remote WebDAV server
|
boolean |
supportsDirectoryCopy()
This wagon supports directory copying
|
backoff, cleanupGetTransfer, closeConnection, execute, fillInputData, fillOutputData, getAuthCache, getBasicAuthScope, getCredentialsProvider, getHttpClient, getHttpConfiguration, getHttpHeaders, getInitialBackoffSeconds, getMaxBackoffWaitSeconds, getProxyBasicAuthScope, getUserAgent, openConnectionInternal, putFromStream, putFromStream, putFromStream, resourceExists, setBasicAuthScope, setHeaders, setHttpConfiguration, setHttpHeaders, setInitialBackoffSeconds, setPersistentPool, setPoolingHttpClientConnectionManager, setProxyBasicAuthScope
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream
addSessionListener, 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, getBufferCapacityForTransfer, 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, transfer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
protected static final String CONTINUE_ON_FAILURE_PROPERTY
public WebDavWagon()
public boolean supportsDirectoryCopy()
supportsDirectoryCopy
in interface Wagon
supportsDirectoryCopy
in class AbstractWagon
true
alwaysprotected void mkdirs(String dir) throws IOException
mkdirs
in class AbstractHttpClientWagon
dir
- path to be created in server from repository basedirIOException
TransferFailedException
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory
in interface Wagon
putDirectory
in class AbstractWagon
sourceDirectory
- the local directorydestinationDirectory
- the remote destinationTransferFailedException
ResourceDoesNotExistException
AuthorizationException
public List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList
in interface Wagon
getFileList
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public String getURL(Repository repository)
getURL
in class AbstractHttpClientWagon
public void put(File source, String resourceName) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
put
in interface Wagon
put
in class AbstractHttpClientWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.