| java.lang.Object com.ericdaugherty.sshwebproxy.SshChannel
All known Subclasses: com.ericdaugherty.sshwebproxy.ShellChannel, com.ericdaugherty.sshwebproxy.FileChannel,
SshChannel | abstract public class SshChannel (Code) | | Provides a base class for all Ssh Channels.
author: Eric Daugherty |
sshConnection | protected SshConnection sshConnection(Code) | | The SshConnection this channel is using
|
SshChannel | public SshChannel(String channelType, SshConnection sshConnection)(Code) | | Create a new SshChannel of the specified type.
Parameters: channelType - the type of channel. Parameters: sshConnection - the connection to the SSH Server. |
close | abstract public void close()(Code) | | Close the SessionChannelClient and all internal
streams. This should only be called by the SshConnection
class and never directly called by a SshChannel implementation.
Channels should call SshConnection.closeChannel( this ) to close
itself.
|
encodeHTML | public String encodeHTML(String data)(Code) | | Replaces any HTML control characters with their escaped value.
Parameters: data - the string to check the encoded string. |
getChannelId | public String getChannelId()(Code) | | The unique ID of this connection
|
getChannelType | public String getChannelType()(Code) | | The type of channel, Shell, SCP, etc
|
getPage | abstract public String getPage()(Code) | | Returns the page that should be used to display this Channel.
URL of the page used to display this channel. |
isConnected | abstract public boolean isConnected()(Code) | | Indicates whether this connection is still active.
true if this connection is still active. |
setChannelId | protected void setChannelId(String channelId)(Code) | | The unique ID of this connection
Parameters: channelId - |
|
|