public class TestFileWagon extends FileWagon
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupport
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
Constructor and Description |
---|
TestFileWagon() |
Modifier and Type | Method and Description |
---|---|
void |
addTransferListener(TransferListener listener) |
void |
get(String resourceName,
File destination) |
boolean |
getIfNewer(String resourceName,
File destination,
long timestamp) |
protected void |
getTransfer(Resource resource,
File destination,
InputStream input,
boolean closeInput,
int maxSize) |
closeConnection, fillInputData, fillOutputData, getFileList, openConnectionInternal, putDirectory, resourceExists, supportsDirectoryCopy
checkInputStream, checkOutputStream, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStream
addSessionListener, cleanupGetTransfer, 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, 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, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
public TestFileWagon()
protected void getTransfer(Resource resource, File destination, InputStream input, boolean closeInput, int maxSize) throws TransferFailedException
getTransfer
in class AbstractWagon
TransferFailedException
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
get
in interface Wagon
get
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getIfNewer
in interface Wagon
getIfNewer
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void addTransferListener(TransferListener listener)
addTransferListener
in interface Wagon
addTransferListener
in class AbstractWagon
Copyright © 2001–2014 The Apache Software Foundation. All rights reserved.