Class SVNNotificationHandler


  • public abstract class SVNNotificationHandler
    extends java.lang.Object
    Notification handler : It sends notifications to all listeners
    • Field Detail

      • notifylisteners

        protected java.util.Set notifylisteners
      • command

        protected int command
      • logEnabled

        protected boolean logEnabled
      • baseDir

        protected java.io.File baseDir
    • Constructor Detail

      • SVNNotificationHandler

        public SVNNotificationHandler()
    • Method Detail

      • add

        public void add​(ISVNNotifyListener listener)
        Add a notification listener
        Parameters:
        listener -
      • remove

        public void remove​(ISVNNotifyListener listener)
        Remove a notification listener
        Parameters:
        listener -
      • enableLog

        public void enableLog()
        restore logging
      • disableLog

        public void disableLog()
        disable all logging
      • logMessage

        public void logMessage​(java.lang.String message)
      • logError

        public void logError​(java.lang.String message)
      • logRevision

        public void logRevision​(long revision,
                                java.lang.String path)
      • logCompleted

        public void logCompleted​(java.lang.String message)
      • setCommand

        public void setCommand​(int command)
        set the command
        Parameters:
        command -
      • logCommandLine

        public void logCommandLine​(java.lang.String commandLine)
        log the command line
        Parameters:
        commandLine -
      • logException

        public void logException​(java.lang.Exception clientException)
        To call when a method of ClientAdapter throw an exception
        Parameters:
        clientException -
      • setBaseDir

        public void setBaseDir​(java.io.File baseDir)
        set the baseDir : directory to use as base directory when path is relative
        Parameters:
        baseDir -
      • setBaseDir

        public void setBaseDir()
      • notifyListenersOfChange

        public void notifyListenersOfChange​(java.lang.String path)
      • notifyListenersOfChange

        public void notifyListenersOfChange​(java.lang.String path,
                                            SVNNodeKind kind)
      • skipCommand

        protected boolean skipCommand()
        For certain commands we just want to skip the logging of the command line