com.sshtools.j2ssh.subsystem

Class SubsystemChannel

Known Direct 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(String name)
SubsystemChannel(String name, SubsystemMessageStore messageStore)

Method Summary

byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
String
getChannelType()
protected void
onChannelClose()
protected void
onChannelData(SshMsgChannelData msg)
protected void
onChannelEOF()
protected void
onChannelExtData(SshMsgChannelExtendedData msg)
protected void
onChannelOpen()
protected void
onChannelRequest(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, getChannelConfirmationData, getChannelOpenData, getChannelType, getLocalChannelId, getLocalPacketSize, getLocalWindow, getMaximumPacketSize, getMaximumWindowSpace, getMinimumWindowSpace, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen, onChannelRequest, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF

Field Details

messageStore

protected SubsystemMessageStore messageStore

Constructor Details

SubsystemChannel

public SubsystemChannel(String name)

SubsystemChannel

public SubsystemChannel(String name,
                        SubsystemMessageStore messageStore)

Method Details

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Overrides:
getChannelConfirmationData in interface Channel

getChannelOpenData

public byte[] getChannelOpenData()
Overrides:
getChannelOpenData in interface Channel

getChannelType

public String getChannelType()
Overrides:
getChannelType in interface Channel

onChannelClose

protected void onChannelClose()
            throws java.io.IOException
Overrides:
onChannelClose in interface Channel

onChannelData

protected void onChannelData(SshMsgChannelData msg)
            throws java.io.IOException
Overrides:
onChannelData in interface Channel

onChannelEOF

protected void onChannelEOF()
            throws java.io.IOException
Overrides:
onChannelEOF in interface Channel

onChannelExtData

protected void onChannelExtData(SshMsgChannelExtendedData msg)
            throws java.io.IOException
Overrides:
onChannelExtData in interface Channel

onChannelOpen

protected void onChannelOpen()
            throws java.io.IOException
Overrides:
onChannelOpen in interface Channel

onChannelRequest

protected void onChannelRequest(String requestType,
                                boolean wantReply,
                                byte[] requestData)
            throws java.io.IOException
Overrides:
onChannelRequest in interface Channel

sendMessage

protected void sendMessage(SubsystemMessage msg)
            throws InvalidMessageException,
                   IOException

startSubsystem

public boolean startSubsystem()
            throws IOException

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