Package org.apache.sshd.sftp.server
Class SftpSubsystemFactory
java.lang.Object
org.apache.sshd.sftp.server.AbstractSftpEventListenerManager
org.apache.sshd.sftp.server.SftpSubsystemFactory
- All Implemented Interfaces:
NamedResource,org.apache.sshd.common.util.threads.ExecutorServiceCarrier,org.apache.sshd.common.util.threads.ExecutorServiceProvider,org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier,SubsystemFactory,SftpErrorDataChannelReceiverProvider,SftpErrorStatusDataHandlerProvider,SftpEventListenerManager,SftpFileSystemAccessorManager,SftpFileSystemAccessorProvider,SftpSubsystemConfigurator,SftpUnsupportedAttributePolicyProvider
public class SftpSubsystemFactory
extends AbstractSftpEventListenerManager
implements org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier, SubsystemFactory, SftpFileSystemAccessorManager, SftpSubsystemConfigurator
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubsystem(ChannelSession channel) org.apache.sshd.common.util.threads.CloseableExecutorServiceSupplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> getName()voidsetErrorChannelDataReceiver(ChannelDataReceiver errorChannelDataReceiver) voidvoidsetExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) voidsetFileSystemAccessor(SftpFileSystemAccessor accessor) voidMethods inherited from class org.apache.sshd.sftp.server.AbstractSftpEventListenerManager
addSftpEventListener, getRegisteredListeners, getSftpEventListenerProxy, removeSftpEventListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.util.threads.ExecutorServiceProvider
resolveExecutorService
-
Field Details
-
NAME
- See Also:
-
DEFAULT_POLICY
-
-
Constructor Details
-
SftpSubsystemFactory
public SftpSubsystemFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceNamedResource
-
getExecutorServiceProvider
public Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> getExecutorServiceProvider()- Specified by:
getExecutorServiceProviderin interfaceorg.apache.sshd.common.util.threads.ExecutorServiceProvider
-
setExecutorServiceProvider
public void setExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) - Specified by:
setExecutorServiceProviderin interfaceorg.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier
-
getUnsupportedAttributePolicy
- Specified by:
getUnsupportedAttributePolicyin interfaceSftpUnsupportedAttributePolicyProvider- Returns:
- The
UnsupportedAttributePolicyto use if failed to access some local file attributes
-
setUnsupportedAttributePolicy
- Parameters:
p- TheUnsupportedAttributePolicyto use if failed to access some local file attributes - nevernull
-
getFileSystemAccessor
- Specified by:
getFileSystemAccessorin interfaceSftpFileSystemAccessorProvider- Returns:
- The
SftpFileSystemAccessorto use for accessing files and directories
-
setFileSystemAccessor
- Specified by:
setFileSystemAccessorin interfaceSftpFileSystemAccessorManager
-
getErrorStatusDataHandler
- Specified by:
getErrorStatusDataHandlerin interfaceSftpErrorStatusDataHandlerProvider- Returns:
- The (never
null)SftpErrorStatusDataHandlerto use when generating failed commands error messages
-
setErrorStatusDataHandler
-
getExecutorService
public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()- Specified by:
getExecutorServicein interfaceorg.apache.sshd.common.util.threads.ExecutorServiceCarrier
-
getErrorChannelDataReceiver
- Specified by:
getErrorChannelDataReceiverin interfaceSftpErrorDataChannelReceiverProvider- Returns:
- A
ChannelDataReceiverto handle optional STDERR data received during SFTP session. Ifnullthen any received such data is ignored.
-
setErrorChannelDataReceiver
-
createSubsystem
- Specified by:
createSubsystemin interfaceSubsystemFactory- Throws:
IOException
-