Secure iNet Factory

com.jscape.inet.sftp.packets
Interface PacketDispatcher


public interface PacketDispatcher

The SFTP packet dispatcher.

Version:
1.0
Author:
Alex

Method Summary
 SftpPacket dispatch(Dispatchable packet)
          The "backwards dispatching" support.
 SftpPacket onSshFxpClose(SshFxpClose packet)
          Processes SSH_FXP_CLOSE packet.
 SftpPacket onSshFxpFsetstat(SshFxpFsetstat packet)
          Processes SSH_FXP_FSETSTAT packet.
 SftpPacket onSshFxpFstat(SshFxpFstat packet)
          Processes SSH_FXP_FSTAT packet.
 SftpPacket onSshFxpInit(SshFxpInit packet)
          Processes SSH_FXP_INIT packet.
 SftpPacket onSshFxpLstat(SshFxpLstat packet)
          Processes SSH_FXP_LSTAT packet.
 SftpPacket onSshFxpMkdir(SshFxpMkdir packet)
          Processes SSH_FXP_MKDIR packet.
 SftpPacket onSshFxpOpen(SshFxpOpen packet)
          Processes SSH_FXP_OPEN packet.
 SftpPacket onSshFxpOpendir(SshFxpOpendir packet)
          Processes SSH_FXP_OPENDIR packet.
 SftpPacket onSshFxpRead(SshFxpRead packet)
          Processes SSH_FXP_READ packet.
 SftpPacket onSshFxpReaddir(SshFxpReaddir packet)
          Processes SSH_FXP_READDIR packet.
 SftpPacket onSshFxpRealpath(SshFxpRealpath packet)
          Processes SSH_FXP_REALPATH packet.
 SftpPacket onSshFxpRemove(SshFxpRemove packet)
          Processes SSH_FXP_REMOVE packet.
 SftpPacket onSshFxpRmdir(SshFxpRmdir packet)
          Processes SSH_FXP_RMDIR packet.
 SftpPacket onSshFxpSetstat(SshFxpSetstat packet)
          Processes SSH_FXP_SETSTAT packet.
 SftpPacket onSshFxpStat(SshFxpStat packet)
          Processes SSH_FXP_STAT packet.
 SftpPacket onSshFxpWrite(SshFxpWrite packet)
          Processes SSH_FXP_WRITE packet.
 

Method Detail

dispatch

SftpPacket dispatch(Dispatchable packet)
                    throws java.io.IOException
The "backwards dispatching" support.

Parameters:
packet - the packet to process
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpClose

SftpPacket onSshFxpClose(SshFxpClose packet)
                         throws java.io.IOException
Processes SSH_FXP_CLOSE packet.

Parameters:
packet - SSH_FXP_CLOSE packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpFsetstat

SftpPacket onSshFxpFsetstat(SshFxpFsetstat packet)
                            throws java.io.IOException
Processes SSH_FXP_FSETSTAT packet.

Parameters:
packet - SSH_FXP_FSETSTAT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpFstat

SftpPacket onSshFxpFstat(SshFxpFstat packet)
                         throws java.io.IOException
Processes SSH_FXP_FSTAT packet.

Parameters:
packet - SSH_FXP_FSTAT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpInit

SftpPacket onSshFxpInit(SshFxpInit packet)
                        throws java.io.IOException
Processes SSH_FXP_INIT packet.

Parameters:
packet - SSH_FXP_INIT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpLstat

SftpPacket onSshFxpLstat(SshFxpLstat packet)
                         throws java.io.IOException
Processes SSH_FXP_LSTAT packet.

Parameters:
packet - SSH_FXP_LSTAT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpMkdir

SftpPacket onSshFxpMkdir(SshFxpMkdir packet)
                         throws java.io.IOException
Processes SSH_FXP_MKDIR packet.

Parameters:
packet - SSH_FXP_MKDIR packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpOpen

SftpPacket onSshFxpOpen(SshFxpOpen packet)
                        throws java.io.IOException
Processes SSH_FXP_OPEN packet.

Parameters:
packet - SSH_FXP_OPEN packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpOpendir

SftpPacket onSshFxpOpendir(SshFxpOpendir packet)
                           throws java.io.IOException
Processes SSH_FXP_OPENDIR packet.

Parameters:
packet - SSH_FXP_OPENDIR packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpRead

SftpPacket onSshFxpRead(SshFxpRead packet)
                        throws java.io.IOException
Processes SSH_FXP_READ packet.

Parameters:
packet - SSH_FXP_READ packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpReaddir

SftpPacket onSshFxpReaddir(SshFxpReaddir packet)
                           throws java.io.IOException
Processes SSH_FXP_READDIR packet.

Parameters:
packet - SSH_FXP_READDIR packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpRealpath

SftpPacket onSshFxpRealpath(SshFxpRealpath packet)
                            throws java.io.IOException
Processes SSH_FXP_REALPATH packet.

Parameters:
packet - SSH_FXP_REALPATH packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpRemove

SftpPacket onSshFxpRemove(SshFxpRemove packet)
                          throws java.io.IOException
Processes SSH_FXP_REMOVE packet.

Parameters:
packet - SSH_FXP_REMOVE packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpRmdir

SftpPacket onSshFxpRmdir(SshFxpRmdir packet)
                         throws java.io.IOException
Processes SSH_FXP_RMDIR packet.

Parameters:
packet - SSH_FXP_RMDIR packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpSetstat

SftpPacket onSshFxpSetstat(SshFxpSetstat packet)
                           throws java.io.IOException
Processes SSH_FXP_SETSTAT packet.

Parameters:
packet - SSH_FXP_SETSTAT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpStat

SftpPacket onSshFxpStat(SshFxpStat packet)
                        throws java.io.IOException
Processes SSH_FXP_STAT packet.

Parameters:
packet - SSH_FXP_STAT packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

onSshFxpWrite

SftpPacket onSshFxpWrite(SshFxpWrite packet)
                         throws java.io.IOException
Processes SSH_FXP_WRITE packet.

Parameters:
packet - SSH_FXP_WRITE packet
Returns:
the response packet
Throws:
java.io.IOException - if an I/O error occurs

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved