Class SshConnectionAdapter
java.lang.Object
net.thevpc.nuts.ext.ssh.SshConnectionAdapter
- All Implemented Interfaces:
AutoCloseable, SshConnection
-
Field Summary
Fields inherited from interface SshConnection
IDENTITY_FILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddListener(SshListener listener) voidclose()voidintexecArrayCommand(String[] command, IOBindings io) execArrayCommandGrabbed(String... command) intexecListCommand(List<String> command, IOBindings io) intexecStringCommand(String command, IOBindings io) execStringCommandGrabbed(String command) getCharset(String basePath) getContentEncoding(String basePath) longgetContentLength(String basePath) getContentType(String basePath) byte[]getDigestWithCommand(String algo, String path) getInputStream(String from) getOutputStream(String from) booleanisAlive()booleanisClosed()voidintremoveListener(SshListener listener) voidreset()void
-
Constructor Details
-
SshConnectionAdapter
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfaceSshConnection
-
getConnection
-
addListener
- Specified by:
addListenerin interfaceSshConnection
-
removeListener
- Specified by:
removeListenerin interfaceSshConnection
-
execListCommand
- Specified by:
execListCommandin interfaceSshConnection
-
execArrayCommand
- Specified by:
execArrayCommandin interfaceSshConnection
-
mv
- Specified by:
mvin interfaceSshConnection
-
execArrayCommandGrabbed
- Specified by:
execArrayCommandGrabbedin interfaceSshConnection
-
execStringCommandGrabbed
- Specified by:
execStringCommandGrabbedin interfaceSshConnection
-
execStringCommand
- Specified by:
execStringCommandin interfaceSshConnection
-
rm
- Specified by:
rmin interfaceSshConnection
-
type
- Specified by:
typein interfaceSshConnection
-
mkdir
- Specified by:
mkdirin interfaceSshConnection
-
getInputStream
- Specified by:
getInputStreamin interfaceSshConnection
-
getOutputStream
- Specified by:
getOutputStreamin interfaceSshConnection
-
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceSshConnection
-
isClosed
public boolean isClosed()- Specified by:
isClosedin 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
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSshConnection
-
getDigestWithCommand
- Specified by:
getDigestWithCommandin interfaceSshConnection
-
getInfo
- Specified by:
getInfoin interfaceSshConnection
-
listInfos
- Specified by:
listInfosin interfaceSshConnection
-