Class ChannelSession

java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.util.closeable.IoBaseCloseable
org.apache.sshd.common.util.closeable.AbstractCloseable
org.apache.sshd.common.util.closeable.AbstractInnerCloseable
All Implemented Interfaces:
Closeable, AutoCloseable, Channel, ClientChannel, ClientSessionHolder, org.apache.sshd.common.AttributeRepository, org.apache.sshd.common.AttributeStore, Channel, ChannelIdentifier, ChannelListenerManager, StreamingChannel, ChannelStreamWriterResolver, ChannelStreamWriterResolverManager, org.apache.sshd.common.Closeable, org.apache.sshd.common.PropertyResolver, org.apache.sshd.common.session.SessionContextHolder, SessionHolder<Session>, org.apache.sshd.common.util.threads.ExecutorServiceCarrier
Direct Known Subclasses:
ChannelSubsystem, PtyCapableChannelSession

public class ChannelSession extends AsyncCapableClientChannel
Client side channel session
Author:
Apache MINA SSHD Project
  • Field Details

    • pumperService

      protected org.apache.sshd.common.util.threads.CloseableExecutorService pumperService
    • pumper

      protected Future<?> pumper
  • Constructor Details

    • ChannelSession

      public ChannelSession()
  • Method Details

    • handleInternalRequest

      protected RequestHandler.Result handleInternalRequest(String req, boolean wantReply, org.apache.sshd.common.util.buffer.Buffer buffer) throws IOException
      Description copied from class: AbstractChannel
      Called by AbstractChannel.handleUnknownChannelRequest(String, boolean, Buffer) in order to allow channel request handling if none of the registered handlers processed the request - last chance.
      Overrides:
      handleInternalRequest in class AbstractChannel
      Parameters:
      req - The request type
      wantReply - Whether reply is requested
      buffer - The Buffer containing extra request-specific data
      Returns:
      The handling result - if null or Unsupported and reply is required then a failure message will be sent
      Throws:
      IOException - If failed to process the request internally
    • handleXonXoff

      protected RequestHandler.Result handleXonXoff(org.apache.sshd.common.util.buffer.Buffer buffer, boolean wantReply) throws IOException
      Throws:
      IOException
    • setEnv

      public Object setEnv(String key, Object value)
      Parameters:
      key - The (never null) key (Note: may be empty...)
      value - The value to set - if null then the pre-existing value for the key (if any) is removed.
      Returns:
      The replaced/removed previous value - null if no previous value set for the key.
    • sendEnvVariables

      protected void sendEnvVariables(Session session) throws IOException
      Throws:
      IOException