Class DetailedSftpErrorStatusDataHandler

  • All Implemented Interfaces:
    org.apache.sshd.sftp.server.SftpErrorStatusDataHandler

    public class DetailedSftpErrorStatusDataHandler
    extends java.lang.Object
    implements org.apache.sshd.sftp.server.SftpErrorStatusDataHandler
    An SftpErrorStatusDataHandler 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
    • 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)  
      • 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
    • Constructor Detail

      • DetailedSftpErrorStatusDataHandler

        public DetailedSftpErrorStatusDataHandler()
    • 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 interface org.apache.sshd.sftp.server.SftpErrorStatusDataHandler