| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ChannelSession | |
| protected Path | |
| public static final String | ENV_HOME
The "HOME" environment variable |
| public static final String | ENV_LANG
Key for the language - format "en_US.UTF-8" |
| public static final String | ENV_PWD
The "PWD" environment variable |
| protected final Charset | |
| protected Path | |
| protected final ScpTransferEventListener | |
| protected final Charset | |
| protected final ScpFileOpener | |
| protected final int | |
| protected final int | |
| public static final String | |
| protected final Map |
| Access | Constructor and Description |
|---|---|
| public | ScpShell(ChannelSession channelSession, CloseableExecutorService executorService, int sendSize, int receiveSize, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public ChannelSession | |
| protected boolean | |
| protected void | |
| protected void | |
| protected List | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected String | |
| protected String | |
| public void | |
| protected void | |
| public void | setFileSystemFactory(FileSystemFactory
The factory instance factory, SessionContext The session)SessionContextOverrides default org. Sets the |
| protected void | |
| protected void | |
| protected void | |
| protected void |
| channelSession | back to summary |
|---|---|
| private final ChannelSession channelSession | |
| currentDir | back to summary |
|---|---|
| protected Path currentDir | |
| ENV_HOME | back to summary |
|---|---|
| public static final String ENV_HOME The "HOME" environment variable | |
| ENV_LANG | back to summary |
|---|---|
| public static final String ENV_LANG Key for the language - format "en_US.UTF-8" | |
| ENV_PWD | back to summary |
|---|---|
| public static final String ENV_PWD The "PWD" environment variable | |
| envVarsEnodingCharset | back to summary |
|---|---|
| protected final Charset envVarsEnodingCharset | |
| homeDir | back to summary |
|---|---|
| protected Path homeDir | |
| listener | back to summary |
|---|---|
| protected final ScpTransferEventListener listener | |
| nameEncodingCharset | back to summary |
|---|---|
| protected final Charset nameEncodingCharset | |
| opener | back to summary |
|---|---|
| protected final ScpFileOpener opener | |
| receiveBufferSize | back to summary |
|---|---|
| protected final int receiveBufferSize | |
| sendBufferSize | back to summary |
|---|---|
| protected final int sendBufferSize | |
| STATUS | back to summary |
|---|---|
| public static final String STATUS | |
| variables | back to summary |
|---|---|
| protected final Map<String, Object> variables | |
| ScpShell | back to summary |
|---|---|
| public ScpShell(ChannelSession channelSession, CloseableExecutorService executorService, int sendSize, int receiveSize, ScpFileOpener fileOpener, ScpTransferEventListener eventListener) | |
| cd | back to summary |
|---|---|
| protected void cd(String[] argv) throws Exception | |
| doLs | back to summary |
|---|---|
| protected void doLs(String cmd, String path, boolean optListAll, boolean optLong, boolean optFullTime) throws Exception | |
| doScp | back to summary |
|---|---|
| protected void doScp(String command, String path, boolean optR, boolean optT, boolean optF, boolean optD, boolean optP) throws Exception | |
| echo | back to summary |
|---|---|
| protected void echo(String[] argv) throws Exception | |
| getServerChannelSession | back to summary |
|---|---|
| public ChannelSession getServerChannelSession() Implements org.
| |
| handleCommandLine | back to summary |
|---|---|
| protected boolean handleCommandLine(String command) throws Exception | |
| handleUnsupportedCommand | back to summary |
|---|---|
| protected void handleUnsupportedCommand(String command, String[] argv) throws Exception | |
| ls | back to summary |
|---|---|
| protected void ls(String[] argv) throws Exception | |
| parse | back to summary |
|---|---|
| protected List | |
| prepareEnvironment | back to summary |
|---|---|
| protected void prepareEnvironment(Environment environ) | |
| printenv | back to summary |
|---|---|
| protected void printenv(String[] argv) throws Exception | |
| println | back to summary |
|---|---|
| protected void println(String cmd, Object x, OutputStream out, Charset cs) | |
| pwd | back to summary |
|---|---|
| protected void pwd(String[] argv) throws Exception | |
| readLine | back to summary |
|---|---|
| protected String readLine(Reader reader) throws IOException | |
| resolveEnvironmentVariable | back to summary |
|---|---|
| protected String resolveEnvironmentVariable(String varName, Map<String, String> envValues) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| scp | back to summary |
|---|---|
| protected void scp(String command, String[] argv) throws Exception | |
| setFileSystemFactory | back to summary |
|---|---|
| public void setFileSystemFactory(FileSystemFactory factory, SessionContext session) throws IOException Overrides default org. Doc from org. Sets the
| |
| signalError | back to summary |
|---|---|
| protected void signalError(String cmd, String errorMsg) | |
| signalError | back to summary |
|---|---|
| protected void signalError(String cmd, String errorMsg, Charset cs) | |
| unset | back to summary |
|---|---|
| protected void unset(String[] argv) throws Exception | |
| updatePwdEnvVariable | back to summary |
|---|---|
| protected void updatePwdEnvVariable(Path pwd) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final Path | |
| protected final Map | |
| public static final DateTimeFormatter | |
| protected final Path | |
| public static final DateTimeFormatter | |
| public static final DateTimeFormatter |
| Modifier and Type | Method and Description |
|---|---|
| protected StringBuilder | |
| public int | compareTo(ScpShell.
the object to be compared. oImplements java. Compares this object with the specified object for order. |
| public String | |
| protected boolean | |
| protected static Map | |
| protected String | |
| public String | |
| protected static String |
| abs | back to summary |
|---|---|
| protected final Path abs | |
| attributes | back to summary |
|---|---|
| protected final Map<String, Object> attributes | |
| FULL_TIME_VALUE_FORMATTER | back to summary |
|---|---|
| public static final DateTimeFormatter FULL_TIME_VALUE_FORMATTER | |
| path | back to summary |
|---|---|
| protected final Path path | |
| TIME_ONLY_VALUE_FORMATTER | back to summary |
|---|---|
| public static final DateTimeFormatter TIME_ONLY_VALUE_FORMATTER | |
| YEAR_VALUE_FORMATTER | back to summary |
|---|---|
| public static final DateTimeFormatter YEAR_VALUE_FORMATTER | |
| PathEntry | back to summary |
|---|---|
| public PathEntry(Path abs, Path root) | |
| appendOwnerInformation | back to summary |
|---|---|
| protected StringBuilder appendOwnerInformation(StringBuilder sb, String attr, String defaultValue) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ScpShell. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| display | back to summary |
|---|---|
| public String display(boolean optLongDisplay, boolean optFullTime) throws NoSuchFileException | |
| is | back to summary |
|---|---|
| protected boolean is(String attr) | |
| readAttributes | back to summary |
|---|---|
| protected static Map | |
| shortDisplay | back to summary |
|---|---|
| protected String shortDisplay() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| protected static String toString(FileTime time, boolean optFullTime) | |