Class DirectConnection
- java.lang.Object
-
- net.schmizz.sshj.connection.channel.AbstractChannel
-
- net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel
-
- net.schmizz.sshj.connection.channel.direct.DirectTCPIPChannel
-
- net.schmizz.sshj.connection.channel.direct.DirectConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,ErrorNotifiable
,SSHPacketHandler
,Channel
,Channel.Direct
public class DirectConnection extends DirectTCPIPChannel
A channel for creating a direct TCP/IP connection from the server to a remote address.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.schmizz.sshj.connection.channel.AbstractChannel
AbstractChannel.TransportRunnable
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.connection.channel.Channel
Channel.Direct, Channel.Forwarded
-
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable
ErrorNotifiable.Util
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCALHOST
static int
LOCALPORT
-
Fields inherited from class net.schmizz.sshj.connection.channel.direct.DirectTCPIPChannel
parameters
-
Fields inherited from class net.schmizz.sshj.connection.channel.AbstractChannel
closeEvent, conn, log, loggerFactory, lwin, openEvent, rwin, trans
-
-
Constructor Summary
Constructors Constructor Description DirectConnection(Connection conn, java.lang.String remoteHost, int remotePort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getRemoteHost()
int
getRemotePort()
-
Methods inherited from class net.schmizz.sshj.connection.channel.direct.DirectTCPIPChannel
buildOpenReq
-
Methods inherited from class net.schmizz.sshj.connection.channel.direct.AbstractDirectChannel
gotUnknown, open
-
Methods inherited from class net.schmizz.sshj.connection.channel.AbstractChannel
close, closeAllStreams, eofInputStreams, finishOff, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, gotExtendedData, handle, handleRequest, init, isEOF, isOpen, join, join, newBuffer, notifyError, receiveInto, sendChannelRequest, sendClose, setAutoExpand, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.schmizz.sshj.connection.channel.Channel
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, isEOF, isOpen, join, join, setAutoExpand
-
Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable
notifyError
-
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
-
-
-
Field Detail
-
LOCALHOST
public static final java.lang.String LOCALHOST
- See Also:
- Constant Field Values
-
LOCALPORT
public static final int LOCALPORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectConnection
public DirectConnection(Connection conn, java.lang.String remoteHost, int remotePort)
-
-