com.sshtools.daemon.sftp
Class SftpSubsystemServer

java.lang.Object
  extended by com.sshtools.daemon.subsystem.SubsystemServer
      extended by com.sshtools.daemon.sftp.SftpSubsystemServer
All Implemented Interfaces:
java.lang.Runnable

public class SftpSubsystemServer
extends SubsystemServer

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
private static org.apache.commons.logging.Log log
           
private  NativeFileSystemProvider nfs
           
static int VERSION_1
           
static int VERSION_2
           
static int VERSION_3
           
static int VERSION_4
           
 
Fields inherited from class com.sshtools.daemon.subsystem.SubsystemServer
session
 
Constructor Summary
SftpSubsystemServer()
          Creates a new SftpSubsystemServer object.
 
Method Summary
private  java.lang.String checkDefaultPath(java.lang.String path)
           
private  void onCloseFile(SshFxpClose msg)
           
private  void onFStat(SshFxpFStat msg)
           
private  void onInitialize(SshFxpInit msg)
           
private  void onLStat(SshFxpLStat msg)
           
private  void onMakeDirectory(SshFxpMkdir msg)
           
protected  void onMessageReceived(SubsystemMessage msg)
           
private  void onOpenDirectory(SshFxpOpenDir msg)
           
private  void onOpenFile(SshFxpOpen msg)
           
private  void onReadDirectory(SshFxpReadDir msg)
           
private  void onReadFile(SshFxpRead msg)
           
private  void onReadlink(SshFxpReadlink msg)
           
private  void onRealPath(SshFxpRealPath msg)
           
private  void onRemoveDirectory(SshFxpRmdir msg)
           
private  void onRemoveFile(SshFxpRemove msg)
           
private  void onRenameFile(SshFxpRename msg)
           
private  void onSetAttributes(SshFxpFSetStat msg)
           
private  void onSetAttributes(SshFxpSetStat msg)
           
private  void onStat(SshFxpStat msg)
           
private  void onSymlink(SshFxpSymlink msg)
           
private  void onWriteFile(SshFxpWrite msg)
           
 void setSession(SessionChannelServer session)
           
 
Methods inherited from class com.sshtools.daemon.subsystem.SubsystemServer
getInputStream, getOutputStream, getState, registerMessage, run, sendMessage, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_1

public static final int VERSION_1
See Also:
Constant Field Values

VERSION_2

public static final int VERSION_2
See Also:
Constant Field Values

VERSION_3

public static final int VERSION_3
See Also:
Constant Field Values

VERSION_4

public static final int VERSION_4
See Also:
Constant Field Values

log

private static org.apache.commons.logging.Log log

nfs

private NativeFileSystemProvider nfs
Constructor Detail

SftpSubsystemServer

public SftpSubsystemServer()
Creates a new SftpSubsystemServer object.

Method Detail

setSession

public void setSession(SessionChannelServer session)
Overrides:
setSession in class SubsystemServer
Parameters:
session -

onMessageReceived

protected void onMessageReceived(SubsystemMessage msg)
Specified by:
onMessageReceived in class SubsystemServer
Parameters:
msg -

onSetAttributes

private void onSetAttributes(SshFxpSetStat msg)

onSetAttributes

private void onSetAttributes(SshFxpFSetStat msg)

onReadlink

private void onReadlink(SshFxpReadlink msg)

onSymlink

private void onSymlink(SshFxpSymlink msg)

onRemoveDirectory

private void onRemoveDirectory(SshFxpRmdir msg)

onRenameFile

private void onRenameFile(SshFxpRename msg)

onRemoveFile

private void onRemoveFile(SshFxpRemove msg)

onOpenFile

private void onOpenFile(SshFxpOpen msg)

onReadFile

private void onReadFile(SshFxpRead msg)

onWriteFile

private void onWriteFile(SshFxpWrite msg)

onCloseFile

private void onCloseFile(SshFxpClose msg)

onFStat

private void onFStat(SshFxpFStat msg)

onStat

private void onStat(SshFxpStat msg)

onLStat

private void onLStat(SshFxpLStat msg)

onReadDirectory

private void onReadDirectory(SshFxpReadDir msg)

onOpenDirectory

private void onOpenDirectory(SshFxpOpenDir msg)

onRealPath

private void onRealPath(SshFxpRealPath msg)

onMakeDirectory

private void onMakeDirectory(SshFxpMkdir msg)

checkDefaultPath

private java.lang.String checkDefaultPath(java.lang.String path)
                                   throws java.io.IOException
Throws:
java.io.IOException

onInitialize

private void onInitialize(SshFxpInit msg)