com.sshtools.j2ssh.subsystem
Class SubsystemChannel

java.lang.Object
  extended by com.sshtools.j2ssh.connection.Channel
      extended by com.sshtools.j2ssh.subsystem.SubsystemChannel
Direct Known Subclasses:
SftpSubsystemClient

public abstract class SubsystemChannel
extends Channel


Field Summary
protected  SubsystemMessageStore messageStore
           
 
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
 
Constructor Summary
SubsystemChannel(java.lang.String name)
           
SubsystemChannel(java.lang.String name, SubsystemMessageStore messageStore)
           
 
Method Summary
 byte[] getChannelConfirmationData()
           
 byte[] getChannelOpenData()
           
 java.lang.String getChannelType()
           
protected  void onChannelClose()
           
protected  void onChannelData(SshMsgChannelData msg)
           
protected  void onChannelEOF()
           
protected  void onChannelExtData(SshMsgChannelExtendedData msg)
           
protected  void onChannelOpen()
           
protected  void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData)
           
protected  void sendMessage(SubsystemMessage msg)
           
 boolean startSubsystem()
           
 
Methods inherited from class com.sshtools.j2ssh.connection.Channel
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getMaximumPacketSize, getMaximumWindowSpace, getMinimumWindowSpace, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageStore

protected SubsystemMessageStore messageStore
Constructor Detail

SubsystemChannel

public SubsystemChannel(java.lang.String name)

SubsystemChannel

public SubsystemChannel(java.lang.String name,
                        SubsystemMessageStore messageStore)
Method Detail

getChannelType

public java.lang.String getChannelType()
Specified by:
getChannelType in class Channel
Returns:

sendMessage

protected void sendMessage(SubsystemMessage msg)
                    throws InvalidMessageException,
                           java.io.IOException
Throws:
InvalidMessageException
java.io.IOException

onChannelRequest

protected void onChannelRequest(java.lang.String requestType,
                                boolean wantReply,
                                byte[] requestData)
                         throws java.io.IOException
Specified by:
onChannelRequest in class Channel
Throws:
java.io.IOException

onChannelExtData

protected void onChannelExtData(SshMsgChannelExtendedData msg)
                         throws java.io.IOException
Specified by:
onChannelExtData in class Channel
Throws:
java.io.IOException

onChannelData

protected void onChannelData(SshMsgChannelData msg)
                      throws java.io.IOException
Specified by:
onChannelData in class Channel
Throws:
java.io.IOException

onChannelEOF

protected void onChannelEOF()
                     throws java.io.IOException
Specified by:
onChannelEOF in class Channel
Throws:
java.io.IOException

onChannelClose

protected void onChannelClose()
                       throws java.io.IOException
Specified by:
onChannelClose in class Channel
Throws:
java.io.IOException

getChannelOpenData

public byte[] getChannelOpenData()
Specified by:
getChannelOpenData in class Channel
Returns:

onChannelOpen

protected void onChannelOpen()
                      throws java.io.IOException
Specified by:
onChannelOpen in class Channel
Throws:
java.io.IOException

startSubsystem

public boolean startSubsystem()
                       throws java.io.IOException
Throws:
java.io.IOException

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Specified by:
getChannelConfirmationData in class Channel
Returns:


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.