public abstract class SubsystemChannel extends Channel
Modifier and Type | Field and Description |
---|---|
protected SubsystemMessageStore |
messageStore |
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
Constructor and Description |
---|
SubsystemChannel(java.lang.String name) |
SubsystemChannel(java.lang.String name,
SubsystemMessageStore messageStore) |
Modifier and Type | Method and Description |
---|---|
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() |
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
protected SubsystemMessageStore messageStore
public SubsystemChannel(java.lang.String name)
public SubsystemChannel(java.lang.String name, SubsystemMessageStore messageStore)
public java.lang.String getChannelType()
getChannelType
in class Channel
protected void sendMessage(SubsystemMessage msg) throws InvalidMessageException, java.io.IOException
InvalidMessageException
java.io.IOException
protected void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData) throws java.io.IOException
onChannelRequest
in class Channel
java.io.IOException
protected void onChannelExtData(SshMsgChannelExtendedData msg) throws java.io.IOException
onChannelExtData
in class Channel
java.io.IOException
protected void onChannelData(SshMsgChannelData msg) throws java.io.IOException
onChannelData
in class Channel
java.io.IOException
protected void onChannelEOF() throws java.io.IOException
onChannelEOF
in class Channel
java.io.IOException
protected void onChannelClose() throws java.io.IOException
onChannelClose
in class Channel
java.io.IOException
public byte[] getChannelOpenData()
getChannelOpenData
in class Channel
protected void onChannelOpen() throws java.io.IOException
onChannelOpen
in class Channel
java.io.IOException
public boolean startSubsystem() throws java.io.IOException
java.io.IOException
public byte[] getChannelConfirmationData()
getChannelConfirmationData
in class Channel
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.