Class HttpWagon
java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.StreamWagon
org.apache.maven.wagon.shared.http.AbstractHttpClientWagon
org.apache.maven.wagon.providers.http.HttpWagon
- All Implemented Interfaces:
StreamingWagon
,Wagon
-
Field Summary
Fields inherited from class org.apache.maven.wagon.shared.http.AbstractHttpClientWagon
SC_TOO_MANY_REQUESTS
Fields inherited from class org.apache.maven.wagon.AbstractWagon
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
Fields inherited from interface org.apache.maven.wagon.Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileList
(int wait, String destinationDirectory) getFileList
(String destinationDirectory) Returns aList
of strings naming the files and directories in the directory denoted by this abstract pathname.Methods inherited from class org.apache.maven.wagon.shared.http.AbstractHttpClientWagon
backoff, cleanupGetTransfer, closeConnection, execute, fillInputData, fillOutputData, getAuthCache, getBasicAuthScope, getCredentialsProvider, getHttpClient, getHttpConfiguration, getHttpHeaders, getInitialBackoffSeconds, getMaxBackoffWaitSeconds, getProxyBasicAuthScope, getURL, getUserAgent, mkdirs, openConnectionInternal, put, putFromStream, putFromStream, putFromStream, resourceExists, setBasicAuthScope, setHeaders, setHttpConfiguration, setHttpHeaders, setInitialBackoffSeconds, setPersistentPool, setPoolingHttpClientConnectionManager, setProxyBasicAuthScope
Methods inherited from class org.apache.maven.wagon.StreamWagon
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream
Methods inherited from class org.apache.maven.wagon.AbstractWagon
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, putDirectory, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, supportsDirectoryCopy, transfer, transfer, transfer, transfer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.wagon.Wagon
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopy
-
Constructor Details
-
HttpWagon
public HttpWagon()
-
-
Method Details
-
getFileList
public List<String> getFileList(String destinationDirectory) throws AuthorizationException, ResourceDoesNotExistException, TransferFailedException Description copied from interface:Wagon
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 interfaceWagon
- Overrides:
getFileList
in classAbstractWagon
- 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:
AuthorizationException
- if not authorized to list the contents of the directoryResourceDoesNotExistException
- if destinationDirectory does not exist or is not a directoryTransferFailedException
- if there's an error trying to access the remote side
-
getFileList
private List<String> getFileList(int wait, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
-