Package com.sshtools.j2ssh.subsystem
Class SubsystemChannel
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.subsystem.SubsystemChannel
- Direct Known Subclasses:
SftpSubsystemClient
-
Field Summary
FieldsFields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
-
Constructor Summary
ConstructorsConstructorDescriptionSubsystemChannel
(String name) SubsystemChannel
(String name, SubsystemMessageStore messageStore) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
protected void
protected void
protected void
protected void
protected void
protected void
onChannelRequest
(String requestType, boolean wantReply, byte[] requestData) protected void
boolean
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
-
Field Details
-
messageStore
-
-
Constructor Details
-
SubsystemChannel
-
SubsystemChannel
-
-
Method Details
-
getChannelType
- Specified by:
getChannelType
in classChannel
- Returns:
-
sendMessage
- Throws:
InvalidMessageException
IOException
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequest
in classChannel
- Throws:
IOException
-
onChannelExtData
- Specified by:
onChannelExtData
in classChannel
- Throws:
IOException
-
onChannelData
- Specified by:
onChannelData
in classChannel
- Throws:
IOException
-
onChannelEOF
- Specified by:
onChannelEOF
in classChannel
- Throws:
IOException
-
onChannelClose
- Specified by:
onChannelClose
in classChannel
- Throws:
IOException
-
getChannelOpenData
public byte[] getChannelOpenData()- Specified by:
getChannelOpenData
in classChannel
- Returns:
-
onChannelOpen
- Specified by:
onChannelOpen
in classChannel
- Throws:
IOException
-
startSubsystem
- Throws:
IOException
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationData
in classChannel
- Returns:
-