Class SftpSubsystemFactory

java.lang.Object
org.apache.sshd.sftp.server.AbstractSftpEventListenerManager
org.apache.sshd.sftp.server.SftpSubsystemFactory
All Implemented Interfaces:
org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.threads.ExecutorServiceCarrier, org.apache.sshd.common.util.threads.ExecutorServiceProvider, org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier, org.apache.sshd.server.subsystem.SubsystemFactory, SftpErrorDataChannelReceiverProvider, SftpErrorStatusDataHandlerProvider, SftpEventListenerManager, SftpFileSystemAccessorManager, SftpFileSystemAccessorProvider, SftpSubsystemConfigurator, SftpUnsupportedAttributePolicyProvider

public class SftpSubsystemFactory extends AbstractSftpEventListenerManager implements org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier, org.apache.sshd.server.subsystem.SubsystemFactory, SftpFileSystemAccessorManager, SftpSubsystemConfigurator
Author:
Apache MINA SSHD Project
  • Field Details

  • Constructor Details

    • SftpSubsystemFactory

      public SftpSubsystemFactory()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.sshd.common.NamedResource
    • getExecutorServiceProvider

      public Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> getExecutorServiceProvider()
      Specified by:
      getExecutorServiceProvider in interface org.apache.sshd.common.util.threads.ExecutorServiceProvider
    • setExecutorServiceProvider

      public void setExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider)
      Specified by:
      setExecutorServiceProvider in interface org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier
    • getUnsupportedAttributePolicy

      public UnsupportedAttributePolicy getUnsupportedAttributePolicy()
      Specified by:
      getUnsupportedAttributePolicy in interface SftpUnsupportedAttributePolicyProvider
      Returns:
      The UnsupportedAttributePolicy to use if failed to access some local file attributes
    • setUnsupportedAttributePolicy

      public void setUnsupportedAttributePolicy(UnsupportedAttributePolicy p)
      Parameters:
      p - The UnsupportedAttributePolicy to use if failed to access some local file attributes - never null
    • getFileSystemAccessor

      public SftpFileSystemAccessor getFileSystemAccessor()
      Specified by:
      getFileSystemAccessor in interface SftpFileSystemAccessorProvider
      Returns:
      The SftpFileSystemAccessor to use for accessing files and directories
    • setFileSystemAccessor

      public void setFileSystemAccessor(SftpFileSystemAccessor accessor)
      Specified by:
      setFileSystemAccessor in interface SftpFileSystemAccessorManager
    • getErrorStatusDataHandler

      public SftpErrorStatusDataHandler getErrorStatusDataHandler()
      Specified by:
      getErrorStatusDataHandler in interface SftpErrorStatusDataHandlerProvider
      Returns:
      The (never null) SftpErrorStatusDataHandler to use when generating failed commands error messages
    • setErrorStatusDataHandler

      public void setErrorStatusDataHandler(SftpErrorStatusDataHandler handler)
    • getExecutorService

      public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()
      Specified by:
      getExecutorService in interface org.apache.sshd.common.util.threads.ExecutorServiceCarrier
    • getErrorChannelDataReceiver

      public org.apache.sshd.server.channel.ChannelDataReceiver getErrorChannelDataReceiver()
      Specified by:
      getErrorChannelDataReceiver in interface SftpErrorDataChannelReceiverProvider
      Returns:
      A ChannelDataReceiver to handle optional STDERR data received during SFTP session. If null then any received such data is ignored.
    • setErrorChannelDataReceiver

      public void setErrorChannelDataReceiver(org.apache.sshd.server.channel.ChannelDataReceiver errorChannelDataReceiver)
    • createSubsystem

      public org.apache.sshd.server.command.Command createSubsystem(org.apache.sshd.server.channel.ChannelSession channel) throws IOException
      Specified by:
      createSubsystem in interface org.apache.sshd.server.subsystem.SubsystemFactory
      Throws:
      IOException