public class SftpSubsystemFactory extends AbstractSftpEventListenerManager implements org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplier, SubsystemFactory, SftpEventListenerManager, SftpFileSystemAccessorManager, SftpSubsystemConfigurator
| Modifier and Type | Class and Description |
|---|---|
static class |
SftpSubsystemFactory.Builder |
| Modifier and Type | Field and Description |
|---|---|
static UnsupportedAttributePolicy |
DEFAULT_POLICY |
static String |
NAME |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
SftpSubsystemFactory() |
| Modifier and Type | Method and Description |
|---|---|
Command |
createSubsystem(ChannelSession channel) |
ChannelDataReceiver |
getErrorChannelDataReceiver() |
SftpErrorStatusDataHandler |
getErrorStatusDataHandler() |
org.apache.sshd.common.util.threads.CloseableExecutorService |
getExecutorService() |
Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> |
getExecutorServiceProvider() |
SftpFileSystemAccessor |
getFileSystemAccessor() |
String |
getName() |
UnsupportedAttributePolicy |
getUnsupportedAttributePolicy() |
void |
setErrorChannelDataReceiver(ChannelDataReceiver errorChannelDataReceiver) |
void |
setErrorStatusDataHandler(SftpErrorStatusDataHandler handler) |
void |
setExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) |
void |
setFileSystemAccessor(SftpFileSystemAccessor accessor) |
void |
setUnsupportedAttributePolicy(UnsupportedAttributePolicy p) |
addSftpEventListener, getRegisteredListeners, getSftpEventListenerProxy, removeSftpEventListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveExecutorServicecreateSubsystemfindByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByNameaddSftpEventListener, getSftpEventListenerProxy, removeSftpEventListenerpublic static final String NAME
public static final UnsupportedAttributePolicy DEFAULT_POLICY
public String getName()
getName in interface NamedResourcepublic Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> getExecutorServiceProvider()
getExecutorServiceProvider in interface org.apache.sshd.common.util.threads.ExecutorServiceProviderpublic void setExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider)
setExecutorServiceProvider in interface org.apache.sshd.common.util.threads.ManagedExecutorServiceSupplierpublic UnsupportedAttributePolicy getUnsupportedAttributePolicy()
getUnsupportedAttributePolicy in interface SftpUnsupportedAttributePolicyProviderUnsupportedAttributePolicy to use if failed to access some local file attributespublic void setUnsupportedAttributePolicy(UnsupportedAttributePolicy p)
p - The UnsupportedAttributePolicy to use if failed to access some local file attributes - never
nullpublic SftpFileSystemAccessor getFileSystemAccessor()
getFileSystemAccessor in interface SftpFileSystemAccessorProviderSftpFileSystemAccessor to use for accessing files and directoriespublic void setFileSystemAccessor(SftpFileSystemAccessor accessor)
setFileSystemAccessor in interface SftpFileSystemAccessorManagerpublic SftpErrorStatusDataHandler getErrorStatusDataHandler()
getErrorStatusDataHandler in interface SftpErrorStatusDataHandlerProvidernull) SftpErrorStatusDataHandler to use when generating failed commands error
messagespublic void setErrorStatusDataHandler(SftpErrorStatusDataHandler handler)
public org.apache.sshd.common.util.threads.CloseableExecutorService getExecutorService()
getExecutorService in interface org.apache.sshd.common.util.threads.ExecutorServiceCarrierpublic ChannelDataReceiver getErrorChannelDataReceiver()
getErrorChannelDataReceiver in interface SftpErrorDataChannelReceiverProviderChannelDataReceiver to handle optional STDERR data received during SFTP session. If
null then any received such data is ignored.public void setErrorChannelDataReceiver(ChannelDataReceiver errorChannelDataReceiver)
public Command createSubsystem(ChannelSession channel) throws IOException
createSubsystem in interface SubsystemFactoryIOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.