Package org.apache.sshd.server.scp
Class ScpCommandFactory.Builder
- java.lang.Object
-
- org.apache.sshd.server.scp.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 usefulObjectBuilder
forScpCommandFactory
-
-
Field Summary
Fields Modifier and Type Field Description private ScpCommandFactory
factory
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScpCommandFactory.Builder
addEventListener(ScpTransferEventListener listener)
ScpCommandFactory
build()
ScpCommandFactory.Builder
removeEventListener(ScpTransferEventListener listener)
ScpCommandFactory.Builder
withDelegate(CommandFactory delegate)
ScpCommandFactory.Builder
withExecutorServiceProvider(java.util.function.Supplier<? extends CloseableExecutorService> provider)
ScpCommandFactory.Builder
withFileOpener(ScpFileOpener opener)
ScpCommandFactory.Builder
withReceiveBufferSize(int receiveSize)
ScpCommandFactory.Builder
withSendBufferSize(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)
-
build
public ScpCommandFactory build()
- Specified by:
build
in interfaceObjectBuilder<ScpCommandFactory>
-
-