Package com.sshtools.j2ssh.subsystem
Class SubsystemChannel
- java.lang.Object
-
- com.sshtools.j2ssh.connection.Channel
-
- com.sshtools.j2ssh.subsystem.SubsystemChannel
-
- Direct Known Subclasses:
SftpSubsystemClient
public abstract class SubsystemChannel extends Channel
-
-
Field Summary
Fields Modifier and Type Field Description protected SubsystemMessageStoremessageStore-
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
-
-
Constructor Summary
Constructors Constructor Description SubsystemChannel(java.lang.String name)SubsystemChannel(java.lang.String name, SubsystemMessageStore messageStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getChannelConfirmationData()byte[]getChannelOpenData()java.lang.StringgetChannelType()protected voidonChannelClose()protected voidonChannelData(SshMsgChannelData msg)protected voidonChannelEOF()protected voidonChannelExtData(SshMsgChannelExtendedData msg)protected voidonChannelOpen()protected voidonChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData)protected voidsendMessage(SubsystemMessage msg)booleanstartSubsystem()-
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 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:
getChannelTypein classChannel- Returns:
-
sendMessage
protected void sendMessage(SubsystemMessage msg) throws InvalidMessageException, java.io.IOException
- Throws:
InvalidMessageExceptionjava.io.IOException
-
onChannelRequest
protected void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData) throws java.io.IOException- Specified by:
onChannelRequestin classChannel- Throws:
java.io.IOException
-
onChannelExtData
protected void onChannelExtData(SshMsgChannelExtendedData msg) throws java.io.IOException
- Specified by:
onChannelExtDatain classChannel- Throws:
java.io.IOException
-
onChannelData
protected void onChannelData(SshMsgChannelData msg) throws java.io.IOException
- Specified by:
onChannelDatain classChannel- Throws:
java.io.IOException
-
onChannelEOF
protected void onChannelEOF() throws java.io.IOException- Specified by:
onChannelEOFin classChannel- Throws:
java.io.IOException
-
onChannelClose
protected void onChannelClose() throws java.io.IOException- Specified by:
onChannelClosein classChannel- Throws:
java.io.IOException
-
getChannelOpenData
public byte[] getChannelOpenData()
- Specified by:
getChannelOpenDatain classChannel- Returns:
-
onChannelOpen
protected void onChannelOpen() throws java.io.IOException- Specified by:
onChannelOpenin classChannel- Throws:
java.io.IOException
-
startSubsystem
public boolean startSubsystem() throws java.io.IOException- Throws:
java.io.IOException
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()
- Specified by:
getChannelConfirmationDatain classChannel- Returns:
-
-