Class SshConnectionBase
java.lang.Object
net.thevpc.nuts.ext.ssh.SshConnectionBase
- All Implemented Interfaces:
AutoCloseable, SshConnection
- Direct Known Subclasses:
BinSshConnection, JCshConnection
-
Field Summary
FieldsFields inherited from interface SshConnection
IDENTITY_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListener(SshListener listener) protected StringcmdArrayToString(String[] command) voidprotected StringdoEscapeArg(String str) intexecArrayCommand(String[] command, IOBindings io) execArrayCommandGrabbed(String... command) intexecListCommand(List<String> command, IOBindings io) execStringCommandGrabbed(String command) failFast()getCharset(String basePath) getContentEncoding(String basePath) longgetContentLength(String basePath) getContentType(String basePath) byte[]getDigestWithCommand(String algo, String basePath) booleanvoidintremoveListener(SshListener listener) voidreset()voidsailFast(boolean failFast) setFailFast(boolean failFast) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SshConnection
close, execStringCommand, getInputStream, getOutputStream, isAlive, isClosed
-
Field Details
-
listeners
-
connectionString
-
-
Constructor Details
-
SshConnectionBase
public SshConnectionBase()
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfaceSshConnection
-
addListener
- Specified by:
addListenerin interfaceSshConnection
-
isFailFast
public boolean isFailFast() -
failFast
-
sailFast
-
setFailFast
-
removeListener
- Specified by:
removeListenerin interfaceSshConnection
-
execListCommand
- Specified by:
execListCommandin interfaceSshConnection
-
execArrayCommand
- Specified by:
execArrayCommandin interfaceSshConnection
-
cmdArrayToString
-
doEscapeArg
-
mv
- Specified by:
mvin interfaceSshConnection
-
execArrayCommandGrabbed
- Specified by:
execArrayCommandGrabbedin interfaceSshConnection
-
execStringCommandGrabbed
- Specified by:
execStringCommandGrabbedin interfaceSshConnection
-
rm
- Specified by:
rmin interfaceSshConnection
-
type
- Specified by:
typein interfaceSshConnection
-
mkdir
- Specified by:
mkdirin interfaceSshConnection
-
list
- Specified by:
listin interfaceSshConnection
-
getContentLength
- Specified by:
getContentLengthin interfaceSshConnection
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceSshConnection
-
getContentType
- Specified by:
getContentTypein interfaceSshConnection
-
getCharset
- Specified by:
getCharsetin interfaceSshConnection
-
cp
- Specified by:
cpin interfaceSshConnection
-
walk
- Specified by:
walkin interfaceSshConnection
-
getDigestWithCommand
- Specified by:
getDigestWithCommandin interfaceSshConnection
-
listInfos
- Specified by:
listInfosin interfaceSshConnection
-
getInfo
- Specified by:
getInfoin interfaceSshConnection
-