public abstract class AbstractJschWagon extends StreamWagon implements SshWagon, CommandExecutor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
EXEC_CHANNEL |
protected com.jcraft.jsch.Session |
session |
protected ScpHelper |
sshTool |
authenticationInfo, DEFAULT_BUFFER_SIZE, interactive, proxyInfo, repository, sessionEventSupport, transferEventSupportROLEDEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT| Constructor and Description |
|---|
AbstractJschWagon() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeConnection() |
void |
executeCommand(String command) |
Streams |
executeCommand(String command,
boolean ignoreFailures) |
List<String> |
getFileList(String destinationDirectory) |
InteractiveUserInfo |
getInteractiveUserInfo() |
KnownHostsProvider |
getKnownHostsProvider() |
protected void |
handleGetException(Resource resource,
Exception e) |
void |
openConnectionInternal() |
void |
putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName) |
void |
setInteractiveUserInfo(InteractiveUserInfo interactiveUserInfo) |
void |
setKnownHostsProvider(KnownHostsProvider knownHostsProvider) |
boolean |
supportsDirectoryCopy() |
checkInputStream, checkOutputStream, fillInputData, fillOutputData, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStreamaddSessionListener, addTransferListener, 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, 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, get, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeoutprotected com.jcraft.jsch.Session session
protected static final String EXEC_CHANNEL
public AbstractJschWagon()
public void openConnectionInternal() throws AuthenticationException
openConnectionInternal in class AbstractWagonAuthenticationExceptionpublic void closeConnection()
closeConnection in class StreamWagonpublic Streams executeCommand(String command, boolean ignoreFailures) throws CommandExecutionException
executeCommand in interface CommandExecutorCommandExecutionExceptionprotected void handleGetException(Resource resource, Exception e) throws TransferFailedException
TransferFailedExceptionpublic List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList in interface WagongetFileList in class AbstractWagonTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionpublic void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory in interface WagonputDirectory in class AbstractWagonTransferFailedExceptionResourceDoesNotExistExceptionAuthorizationExceptionpublic boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists in interface WagonresourceExists in class AbstractWagonTransferFailedExceptionAuthorizationExceptionpublic boolean supportsDirectoryCopy()
supportsDirectoryCopy in interface WagonsupportsDirectoryCopy in class AbstractWagonpublic void executeCommand(String command) throws CommandExecutionException
executeCommand in interface CommandExecutorCommandExecutionExceptionpublic InteractiveUserInfo getInteractiveUserInfo()
public KnownHostsProvider getKnownHostsProvider()
public void setInteractiveUserInfo(InteractiveUserInfo interactiveUserInfo)
public void setKnownHostsProvider(KnownHostsProvider knownHostsProvider)
setKnownHostsProvider in interface SshWagonCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.