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 voidprotected voidprotected voidprotected voidprotected voidprotected voidonChannelRequest(String requestType, boolean wantReply, byte[] requestData) protected voidbooleanMethods 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:
getChannelTypein classChannel- Returns:
-
sendMessage
- Throws:
InvalidMessageExceptionIOException
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequestin classChannel- Parameters:
requestType-wantReply-requestData-- Throws:
IOException
-
onChannelExtData
- Specified by:
onChannelExtDatain classChannel- Parameters:
msg-- Throws:
IOException
-
onChannelData
- Specified by:
onChannelDatain classChannel- Parameters:
msg-- Throws:
IOException
-
onChannelEOF
- Specified by:
onChannelEOFin classChannel- Throws:
IOException
-
onChannelClose
- Specified by:
onChannelClosein classChannel- Throws:
IOException
-
getChannelOpenData
public byte[] getChannelOpenData()- Specified by:
getChannelOpenDatain classChannel- Returns:
-
onChannelOpen
- Specified by:
onChannelOpenin classChannel- Throws:
IOException
-
startSubsystem
- Throws:
IOException
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationDatain classChannel- Returns:
-