CommandFactory can be used as a standalone command factory or can be used to augment another
CommandFactory and provides SCP support.
ScpCommand, ScpShell
| Modifier and Type | Class and Description |
|---|---|
| public static class | ScpCommandFactory.
A useful |
| Modifier and Type | Field and Description |
|---|---|
| private ShellFactory | |
| private Supplier | |
| private ScpFileOpener | |
| private ScpTransferEventListener | |
| private Collection | |
| private int | |
| public static final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| delegateShellFactory | back to summary |
|---|---|
| private ShellFactory delegateShellFactory | |
| executorsProvider | back to summary |
|---|---|
| private Supplier<? extends CloseableExecutorService> executorsProvider | |
| fileOpener | back to summary |
|---|---|
| private ScpFileOpener fileOpener | |
| listenerProxy | back to summary |
|---|---|
| private ScpTransferEventListener listenerProxy | |
| listeners | back to summary |
|---|---|
| private Collection<ScpTransferEventListener> listeners | |
| receiveBufferSize | back to summary |
|---|---|
| private int receiveBufferSize | |
| SCP_FACTORY_NAME | back to summary |
|---|---|
| public static final String SCP_FACTORY_NAME | |
| sendBufferSize | back to summary |
|---|---|
| private int sendBufferSize | |
| ScpCommandFactory | back to summary |
|---|---|
| public ScpCommandFactory() | |
| addEventListener | back to summary |
|---|---|
public boolean addEventListener(ScpTransferEventListener listener)
| |
| clone | back to summary |
|---|---|
| public ScpCommandFactory clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| createShell | back to summary |
|---|---|
| public Command createShell(ChannelSession channel) throws IOException Implements org.
| |
| executeSupportedCommand | back to summary |
|---|---|
| protected Command executeSupportedCommand(ChannelSession channel, String command) Implements abstract org.
| |
| getDelegateShellFactory | back to summary |
|---|---|
public ShellFactory getDelegateShellFactory()
| |
| getExecutorServiceProvider | back to summary |
|---|---|
| public Supplier Implements org.
| |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() | |
| getScpFileOpener | back to summary |
|---|---|
| public ScpFileOpener getScpFileOpener() Implements org.
| |
| getSendBufferSize | back to summary |
|---|---|
| public int getSendBufferSize() | |
| isSupportedCommand | back to summary |
|---|---|
| public boolean isSupportedCommand(ChannelSession channel, String command) Implements abstract org.
| |
| removeEventListener | back to summary |
|---|---|
public boolean removeEventListener(ScpTransferEventListener listener)
| |
| resolveExecutorService | back to summary |
|---|---|
| protected CloseableExecutorService resolveExecutorService(String command) | |
| selectShellFactory | back to summary |
|---|---|
| public ShellFactory selectShellFactory(ChannelSession channelSession) throws IOException Implements org.
| |
| setDelegateShellFactory | back to summary |
|---|---|
public void setDelegateShellFactory(ShellFactory delegateShellFactory)
| |
| setExecutorServiceProvider | back to summary |
|---|---|
| public void setExecutorServiceProvider(Supplier<? extends CloseableExecutorService> provider) Implements org.
| |
| setReceiveBufferSize | back to summary |
|---|---|
public void setReceiveBufferSize(int receiveSize)
| |
| setScpFileOpener | back to summary |
|---|---|
| public void setScpFileOpener(ScpFileOpener fileOpener) Implements org.
| |
| setSendBufferSize | back to summary |
|---|---|
public void setSendBufferSize(int sendSize)
| |
ObjectBuilder for ScpCommandFactory
| Modifier and Type | Field and Description |
|---|---|
| private final ScpCommandFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ScpCommandFactory. | |
| public ScpCommandFactory | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. | |
| public ScpCommandFactory. |
| factory | back to summary |
|---|---|
| private final ScpCommandFactory factory | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| addEventListener | back to summary |
|---|---|
| public ScpCommandFactory. | |
| build | back to summary |
|---|---|
| public ScpCommandFactory build() Implements org.
| |
| removeEventListener | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withDelegate | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withDelegateShellFactory | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withExecutorServiceProvider | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withFileOpener | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withReceiveBufferSize | back to summary |
|---|---|
| public ScpCommandFactory. | |
| withSendBufferSize | back to summary |
|---|---|
| public ScpCommandFactory. | |