com.sshtools.j2ssh.sftp
Class SshFxpSymlink

java.lang.Object
  extended by com.sshtools.j2ssh.subsystem.SubsystemMessage
      extended by com.sshtools.j2ssh.sftp.SshFxpSymlink
All Implemented Interfaces:
MessageRequestId

public class SshFxpSymlink
extends SubsystemMessage
implements MessageRequestId

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

Field Summary
private  UnsignedInteger32 id
           
private  java.lang.String linkpath
           
static int SSH_FXP_SYMLINK
           
private  java.lang.String targetpath
           
 
Constructor Summary
SshFxpSymlink()
          Creates a new SshFxpSymlink object.
SshFxpSymlink(UnsignedInteger32 id, java.lang.String targetpath, java.lang.String linkpath)
          Creates a new SshFxpSymlink object.
 
Method Summary
 void constructByteArray(ByteArrayWriter baw)
           
 void constructMessage(ByteArrayReader bar)
           
 UnsignedInteger32 getId()
           
 java.lang.String getLinkPath()
           
 java.lang.String getMessageName()
           
 java.lang.String getTargetPath()
           
 
Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage
fromByteArray, getMessageType, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_FXP_SYMLINK

public static final int SSH_FXP_SYMLINK
See Also:
Constant Field Values

id

private UnsignedInteger32 id

linkpath

private java.lang.String linkpath

targetpath

private java.lang.String targetpath
Constructor Detail

SshFxpSymlink

public SshFxpSymlink()
Creates a new SshFxpSymlink object.


SshFxpSymlink

public SshFxpSymlink(UnsignedInteger32 id,
                     java.lang.String targetpath,
                     java.lang.String linkpath)
Creates a new SshFxpSymlink object.

Parameters:
id -
targetpath -
linkpath -
Method Detail

getId

public UnsignedInteger32 getId()
Specified by:
getId in interface MessageRequestId
Returns:

getLinkPath

public java.lang.String getLinkPath()
Returns:

getTargetPath

public java.lang.String getTargetPath()
Returns:

constructMessage

public void constructMessage(ByteArrayReader bar)
                      throws java.io.IOException,
                             InvalidMessageException
Specified by:
constructMessage in class SubsystemMessage
Parameters:
bar -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!

getMessageName

public java.lang.String getMessageName()
Specified by:
getMessageName in class SubsystemMessage
Returns:

constructByteArray

public void constructByteArray(ByteArrayWriter baw)
                        throws java.io.IOException,
                               InvalidMessageException
Specified by:
constructByteArray in class SubsystemMessage
Parameters:
baw -
Throws:
java.io.IOException
InvalidMessageException - DOCUMENT ME!