Top Description Fields Methods
org.apache.sshd.sftp.server

public Interface SftpErrorStatusDataHandler

Imports
org.apache.sshd.sftp.common.SftpHelper

Invoked in order to format failed commands messages
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final SftpErrorStatusDataHandler

Method Summary

Modifier and TypeMethod and Description
public default String

Returns:

The error message language tag - recommend returning empty string
resolveErrorLanguage
(SftpSubsystemEnvironment
The SFTP subsystem instance
sftpSubsystem
,
int
The command identifier
id
,
Throwable
Thrown exception
e
,
int
The sub-status code obtained from invocation of resolveSubStatus
subStatus
,
int
The command that was attempted
cmd
,
Object...
The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version
args
)

public default String

Returns:

The human readable text message that explains the failure reason
resolveErrorMessage
(SftpSubsystemEnvironment
The SFTP subsystem instance
sftpSubsystem
,
int
The command identifier
id
,
Throwable
Thrown exception
e
,
int
The sub-status code obtained from invocation of resolveSubStatus
subStatus
,
int
The command that was attempted
cmd
,
Object...
The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version
args
)

public default int

Returns:

The relevant sub-status to send as failure indication for the failed command
resolveSubStatus
(SftpSubsystemEnvironment
The SFTP subsystem instance
sftpSubsystem
,
int
The command identifier
id
,
Throwable
Thrown exception
e
,
int
The command that was attempted
cmd
,
Object...
The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version
args
)

Field Detail

DEFAULTback to summary
public static final SftpErrorStatusDataHandler DEFAULT

Method Detail

resolveErrorLanguageback to summary
public default String resolveErrorLanguage(SftpSubsystemEnvironment sftpSubsystem, int id, Throwable e, int subStatus, int cmd, Object... args)
Parameters
sftpSubsystem:SftpSubsystemEnvironment

The SFTP subsystem instance

id:int

The command identifier

e:Throwable

Thrown exception

subStatus:int

The sub-status code obtained from invocation of resolveSubStatus

cmd:int

The command that was attempted

args:Object[]

The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version

Returns:String

The error message language tag - recommend returning empty string

resolveErrorMessageback to summary
public default String resolveErrorMessage(SftpSubsystemEnvironment sftpSubsystem, int id, Throwable e, int subStatus, int cmd, Object... args)
Parameters
sftpSubsystem:SftpSubsystemEnvironment

The SFTP subsystem instance

id:int

The command identifier

e:Throwable

Thrown exception

subStatus:int

The sub-status code obtained from invocation of resolveSubStatus

cmd:int

The command that was attempted

args:Object[]

The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version

Returns:String

The human readable text message that explains the failure reason

See Also
SftpHelper#resolveStatusMessage(int)
resolveSubStatusback to summary
public default int resolveSubStatus(SftpSubsystemEnvironment sftpSubsystem, int id, Throwable e, int cmd, Object... args)
Parameters
sftpSubsystem:SftpSubsystemEnvironment

The SFTP subsystem instance

id:int

The command identifier

e:Throwable

Thrown exception

cmd:int

The command that was attempted

args:Object[]

The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version

Returns:int

The relevant sub-status to send as failure indication for the failed command

See Also
SftpHelper#resolveSubstatus(Throwable)