|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.Subsystem
com.maverick.sshd.sftp.SftpSubsystem
public class SftpSubsystem
This class provides the SFTP subsystem. The subsystem obtains an instance of
the configured FileSystem to
serve files through the SFTP protocol. This implementation currently supports
up to version 3 of the protocol.
| Field Summary | |
|---|---|
static int |
MAX_VERSION
|
static String |
SUBSYSTEM_NAME
|
| Fields inherited from class com.maverick.sshd.Subsystem |
|---|
context, session |
| Constructor Summary | |
|---|---|
SftpSubsystem()
|
|
| Method Summary | |
|---|---|
static String |
formatLongname(SftpFile file)
Format a String with the details of the file. |
static String |
formatLongname(SftpFileAttributes attrs,
String filename)
Format a String with the details of the file. |
void |
init(SessionChannel session)
Initialize the subsystem with the current session and configuration. |
protected void |
onMessageReceived(byte[] msg)
Called when a subsystem message has been extracted from the incoming data stream. |
protected void |
onSubsystemFree()
Called to free the subsystem and its resources. |
| Methods inherited from class com.maverick.sshd.Subsystem |
|---|
getName, processMessage, sendMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_VERSION
public static final String SUBSYSTEM_NAME
| Constructor Detail |
|---|
public SftpSubsystem()
| Method Detail |
|---|
public void init(SessionChannel session)
throws IOException,
PermissionDeniedException
Subsystem
init in class SubsystemIOException
PermissionDeniedExceptionprotected void onSubsystemFree()
onSubsystemFree in class Subsystem
protected void onMessageReceived(byte[] msg)
throws IOException
Subsystem
onMessageReceived in class SubsystemIOExceptionpublic static String formatLongname(SftpFile file)
-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer
file -
com.maverick.ssh.SftpStatusException
com.maverick.ssh.SshException
public static String formatLongname(SftpFileAttributes attrs,
String filename)
-rwxr-xr-x 1 mjos staff 348911 Mar 25 14:29 t-filexfer
attrs - filename -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||