com.sshtools.j2ssh.sftp

Class SshFxpStatus

Implemented Interfaces:
com.sshtools.j2ssh.sftp.MessageRequestId

public class SshFxpStatus
extends SubsystemMessage
implements com.sshtools.j2ssh.sftp.MessageRequestId

Version:
$Revision: 1.18 $
Author:
$author$

Field Summary

static int
SSH_FXP_STATUS
static int
STATUS_FX_BAD_MESSAGE
static int
STATUS_FX_CONNECTION_LOST
static int
STATUS_FX_EOF
static int
STATUS_FX_FAILURE
static int
STATUS_FX_NO_CONNECTION
static int
STATUS_FX_NO_SUCH_FILE
static int
STATUS_FX_OK
static int
STATUS_FX_OP_UNSUPPORTED
static int
STATUS_FX_PERMISSION_DENIED

Constructor Summary

SshFxpStatus()
Creates a new SshFxpStatus object.
SshFxpStatus(UnsignedInteger32 id, UnsignedInteger32 errorCode, String errorMessage, String languageTag)
Creates a new SshFxpStatus object.

Method Summary

void
constructByteArray(ByteArrayWriter baw)
void
constructMessage(ByteArrayReader bar)
UnsignedInteger32
getErrorCode()
String
getErrorMessage()
UnsignedInteger32
getId()
String
getLanguageTag()
String
getMessageName()

Methods inherited from class com.sshtools.j2ssh.subsystem.SubsystemMessage

constructByteArray, constructMessage, fromByteArray, getMessageName, getMessageType, toByteArray

Field Details

SSH_FXP_STATUS

public static final int SSH_FXP_STATUS
Field Value:
101

STATUS_FX_BAD_MESSAGE

public static final int STATUS_FX_BAD_MESSAGE
Field Value:
5

STATUS_FX_CONNECTION_LOST

public static final int STATUS_FX_CONNECTION_LOST
Field Value:
7

STATUS_FX_EOF

public static final int STATUS_FX_EOF
Field Value:
1

STATUS_FX_FAILURE

public static final int STATUS_FX_FAILURE
Field Value:
4

STATUS_FX_NO_CONNECTION

public static final int STATUS_FX_NO_CONNECTION
Field Value:
6

STATUS_FX_NO_SUCH_FILE

public static final int STATUS_FX_NO_SUCH_FILE
Field Value:
2

STATUS_FX_OK

public static final int STATUS_FX_OK
Field Value:
0

STATUS_FX_OP_UNSUPPORTED

public static final int STATUS_FX_OP_UNSUPPORTED
Field Value:
8

STATUS_FX_PERMISSION_DENIED

public static final int STATUS_FX_PERMISSION_DENIED
Field Value:
3

Constructor Details

SshFxpStatus

public SshFxpStatus()
Creates a new SshFxpStatus object.

SshFxpStatus

public SshFxpStatus(UnsignedInteger32 id,
                    UnsignedInteger32 errorCode,
                    String errorMessage,
                    String languageTag)
Creates a new SshFxpStatus object.
Parameters:
id -
errorCode -
errorMessage -
languageTag -

Method Details

constructByteArray

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

constructMessage

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

getErrorCode

public UnsignedInteger32 getErrorCode()
Returns:

getErrorMessage

public String getErrorMessage()
Returns:

getId

public UnsignedInteger32 getId()
Specified by:
getId in interface com.sshtools.j2ssh.sftp.MessageRequestId
Returns:

getLanguageTag

public String getLanguageTag()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SubsystemMessage
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.