public class LightweightHttpWagon extends StreamWagon
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport| Constructor and Description |
|---|
LightweightHttpWagon() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
void |
fillInputData(InputData inputData) |
void |
fillOutputData(OutputData outputData) |
protected void |
finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
List |
getFileList(String destinationDirectory)
Returns a
List of strings naming the files and directories in the directory denoted by
this abstract pathname. |
Properties |
getHttpHeaders() |
boolean |
isUseCache() |
protected void |
openConnectionInternal() |
boolean |
resourceExists(String resourceName)
Check if a remote resource exists
|
void |
setHttpHeaders(Properties httpHeaders) |
void |
setUseCache(boolean useCache) |
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStreamaddSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putDirectory, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setSessionEventSupport, setTimeout, setTransferEventSupport, supportsDirectoryCopy, transfer, transfer, transferclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setTimeout, supportsDirectoryCopypublic void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
fillInputData in class StreamWagonTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionpublic void fillOutputData(OutputData outputData) throws TransferFailedException
fillOutputData in class StreamWagonTransferFailedExceptionprotected void finishPutTransfer(Resource resource, InputStream input, OutputStream output) throws TransferFailedException, AuthorizationException, ResourceDoesNotExistException
finishPutTransfer in class AbstractWagonTransferFailedExceptionAuthorizationExceptionResourceDoesNotExistExceptionprotected void openConnectionInternal()
throws ConnectionException,
AuthenticationException
openConnectionInternal in class AbstractWagonConnectionExceptionAuthenticationExceptionpublic void closeConnection()
throws ConnectionException
closeConnection in class StreamWagonConnectionExceptionpublic List 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 boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
WagonresourceExists in interface WagonresourceExists in class AbstractWagonTransferFailedException - if there's an error trying to access the remote sideAuthorizationException - if not authorized to verify the existence of the resourcepublic boolean isUseCache()
public void setUseCache(boolean useCache)
public Properties getHttpHeaders()
public void setHttpHeaders(Properties httpHeaders)
Copyright © 2003–2015. All rights reserved.