Class DetailedSftpErrorStatusDataHandler
- java.lang.Object
-
- org.apache.sshd.contrib.server.subsystem.sftp.DetailedSftpErrorStatusDataHandler
-
- All Implemented Interfaces:
org.apache.sshd.sftp.server.SftpErrorStatusDataHandler
public class DetailedSftpErrorStatusDataHandler extends java.lang.Object implements org.apache.sshd.sftp.server.SftpErrorStatusDataHandler
AnSftpErrorStatusDataHandler
implementation 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 DetailedSftpErrorStatusDataHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description DetailedSftpErrorStatusDataHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
resolveErrorMessage(org.apache.sshd.sftp.server.SftpSubsystemEnvironment sftpSubsystem, int id, java.lang.Throwable e, int subStatus, int cmd, java.lang.Object... args)
-
-
-
Field Detail
-
INSTANCE
public static final DetailedSftpErrorStatusDataHandler INSTANCE
-
-
Method Detail
-
resolveErrorMessage
public java.lang.String resolveErrorMessage(org.apache.sshd.sftp.server.SftpSubsystemEnvironment sftpSubsystem, int id, java.lang.Throwable e, int subStatus, int cmd, java.lang.Object... args)
- Specified by:
resolveErrorMessage
in interfaceorg.apache.sshd.sftp.server.SftpErrorStatusDataHandler
-
-