Class DetailedSftpErrorStatusDataHandler
- java.lang.Object
-
- org.apache.sshd.contrib.server.subsystem.sftp.DetailedSftpErrorStatusDataHandler
-
- All Implemented Interfaces:
SftpErrorStatusDataHandler
public class DetailedSftpErrorStatusDataHandler extends java.lang.Object implements SftpErrorStatusDataHandler
AnSftpErrorStatusDataHandlerimplementation that returns an elaborate message string for the thrown exception - thus potentially "leaking" information about the internal implementation and/or real paths. Recommended for debugging or systems where such leakage is not considered a security risk
-
-
Field Summary
Fields Modifier and Type Field Description static DetailedSftpErrorStatusDataHandlerINSTANCE-
Fields inherited from interface org.apache.sshd.sftp.server.SftpErrorStatusDataHandler
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description DetailedSftpErrorStatusDataHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringresolveErrorMessage(SftpSubsystemEnvironment sftpSubsystem, int id, java.lang.Throwable e, int subStatus, int cmd, java.lang.Object... args)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.sftp.server.SftpErrorStatusDataHandler
resolveErrorLanguage, resolveSubStatus
-
-
-
-
Field Detail
-
INSTANCE
public static final DetailedSftpErrorStatusDataHandler INSTANCE
-
-
Method Detail
-
resolveErrorMessage
public java.lang.String resolveErrorMessage(SftpSubsystemEnvironment sftpSubsystem, int id, java.lang.Throwable e, int subStatus, int cmd, java.lang.Object... args)
- Specified by:
resolveErrorMessagein interfaceSftpErrorStatusDataHandler- Parameters:
sftpSubsystem- The SFTP subsystem instanceid- The command identifiere- Thrown exceptionsubStatus- The sub-status code obtained from invocation ofresolveSubStatuscmd- The command that was attemptedargs- The relevant command arguments - Note: provided only for logging purposes and subject to type and/or order change at any version- Returns:
- The human readable text message that explains the failure reason
- See Also:
SftpHelper.resolveStatusMessage(int)
-
-