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, SftpEventListenerManager, SftpFileSystemAccessorManager, SftpSubsystemConfigurator
- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSubsystem
(ChannelSession channel) org.apache.sshd.common.util.threads.CloseableExecutorService
Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService>
getName()
void
setErrorChannelDataReceiver
(ChannelDataReceiver errorChannelDataReceiver) void
void
setExecutorServiceProvider
(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) void
setFileSystemAccessor
(SftpFileSystemAccessor accessor) void
Methods inherited from class org.apache.sshd.sftp.server.AbstractSftpEventListenerManager
addSftpEventListener, getRegisteredListeners, getSftpEventListenerProxy, removeSftpEventListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.util.threads.ExecutorServiceProvider
resolveExecutorService
Methods inherited from interface org.apache.sshd.sftp.server.SftpEventListenerManager
addSftpEventListener, getSftpEventListenerProxy, removeSftpEventListener
-
Field Details
-
NAME
- See Also:
-
DEFAULT_POLICY
-
-
Constructor Details
-
SftpSubsystemFactory
public SftpSubsystemFactory()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceNamedResource
-
getExecutorServiceProvider
public Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> getExecutorServiceProvider()- Specified by:
getExecutorServiceProvider
in interfaceorg.apache.sshd.common.util.threads.ExecutorServiceProvider
-
setExecutorServiceProvider
public void setExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) - Specified by:
setExecutorServiceProvider
in interfaceorg.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier
-
getUnsupportedAttributePolicy
- Specified by:
getUnsupportedAttributePolicy
in interfaceSftpUnsupportedAttributePolicyProvider
- Returns:
- The
UnsupportedAttributePolicy
to use if failed to access some local file attributes
-
setUnsupportedAttributePolicy
- Parameters:
p
- TheUnsupportedAttributePolicy
to use if failed to access some local file attributes - nevernull
-
getFileSystemAccessor
- Specified by:
getFileSystemAccessor
in interfaceSftpFileSystemAccessorProvider
- Returns:
- The
SftpFileSystemAccessor
to use for accessing files and directories
-
setFileSystemAccessor
- Specified by:
setFileSystemAccessor
in interfaceSftpFileSystemAccessorManager
-
getErrorStatusDataHandler
- Specified by:
getErrorStatusDataHandler
in interfaceSftpErrorStatusDataHandlerProvider
- Returns:
- The (never
null
)SftpErrorStatusDataHandler
to use when generating failed commands error messages
-
setErrorStatusDataHandler
-
getExecutorService
public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()- Specified by:
getExecutorService
in interfaceorg.apache.sshd.common.util.threads.ExecutorServiceCarrier
-
getErrorChannelDataReceiver
- Specified by:
getErrorChannelDataReceiver
in interfaceSftpErrorDataChannelReceiverProvider
- Returns:
- A
ChannelDataReceiver
to handle optional STDERR data received during SFTP session. Ifnull
then any received such data is ignored.
-
setErrorChannelDataReceiver
-
createSubsystem
- Specified by:
createSubsystem
in interfaceSubsystemFactory
- Throws:
IOException
-