Package org.apache.sshd.scp.server
Class ScpCommandFactory.Builder
- java.lang.Object
-
- org.apache.sshd.scp.server.ScpCommandFactory.Builder
-
- All Implemented Interfaces:
java.util.function.Supplier<ScpCommandFactory>,ObjectBuilder<ScpCommandFactory>
- Enclosing class:
- ScpCommandFactory
public static class ScpCommandFactory.Builder extends java.lang.Object implements ObjectBuilder<ScpCommandFactory>
A usefulObjectBuilderforScpCommandFactory
-
-
Field Summary
Fields Modifier and Type Field Description private ScpCommandFactoryfactory
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScpCommandFactory.BuilderaddEventListener(ScpTransferEventListener listener)ScpCommandFactorybuild()ScpCommandFactory.BuilderremoveEventListener(ScpTransferEventListener listener)ScpCommandFactory.BuilderwithDelegate(CommandFactory delegate)ScpCommandFactory.BuilderwithDelegateShellFactory(ShellFactory shellFactory)ScpCommandFactory.BuilderwithExecutorServiceProvider(java.util.function.Supplier<? extends CloseableExecutorService> provider)ScpCommandFactory.BuilderwithFileOpener(ScpFileOpener opener)ScpCommandFactory.BuilderwithReceiveBufferSize(int receiveSize)ScpCommandFactory.BuilderwithSendBufferSize(int sendSize)-
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.ObjectBuilder
get
-
-
-
-
Field Detail
-
factory
private final ScpCommandFactory factory
-
-
Method Detail
-
withFileOpener
public ScpCommandFactory.Builder withFileOpener(ScpFileOpener opener)
-
withDelegate
public ScpCommandFactory.Builder withDelegate(CommandFactory delegate)
-
withExecutorServiceProvider
public ScpCommandFactory.Builder withExecutorServiceProvider(java.util.function.Supplier<? extends CloseableExecutorService> provider)
-
withSendBufferSize
public ScpCommandFactory.Builder withSendBufferSize(int sendSize)
-
withReceiveBufferSize
public ScpCommandFactory.Builder withReceiveBufferSize(int receiveSize)
-
addEventListener
public ScpCommandFactory.Builder addEventListener(ScpTransferEventListener listener)
-
removeEventListener
public ScpCommandFactory.Builder removeEventListener(ScpTransferEventListener listener)
-
withDelegateShellFactory
public ScpCommandFactory.Builder withDelegateShellFactory(ShellFactory shellFactory)
-
build
public ScpCommandFactory build()
- Specified by:
buildin interfaceObjectBuilder<ScpCommandFactory>
-
-