Interface ChannelStreamWriterResolver
- All Known Subinterfaces:
Channel, ChannelStreamWriterResolverManager, ClientChannel, ClientFactoryManager, ClientSession, FactoryManager, ServerChannel, ServerFactoryManager, ServerSession, Session
- All Known Implementing Classes:
AbstractChannel, AbstractClientChannel, AbstractClientSession, AbstractFactoryManager, AbstractServerChannel, AbstractServerSession, AbstractSession, AgentForwardedChannel, AgentForwardedChannel, AsyncCapableClientChannel, ChannelAgentForwarding, ChannelAgentForwarding, ChannelDirectTcpip, ChannelExec, ChannelForwardedX11, ChannelSession, ChannelSession, ChannelShell, ChannelSubsystem, ClientSessionImpl, DefaultSftpClient.SftpChannelSubsystem, PtyCapableChannelSession, ServerSessionImpl, SessionHelper, SshClient, SshServer, TcpipClientChannel, TcpipServerChannel
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A special mechanism that enables users to intervene in the way packets are sent from
ChannelOutputStream-s -
e.g., by introducing throttling-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChannelStreamWriterResolverAn identity resolver - i.e., no special intervention - simply use the channel itself -
Method Summary
-
Field Details
-
NONE
An identity resolver - i.e., no special intervention - simply use the channel itself
-
-
Method Details
-
resolveChannelStreamWriter
- Parameters:
channel- The originalChannelcmd- TheSSH_MSG_CHANNEL_DATAorSSH_MSG_CHANNEL_EXTENDED_DATAcommand that triggered the resolution- Returns:
- The
ChannelStreamWriterto use - Note: if the return value is not aChannelthen it will be closed when the stream is closed
-