org.tigris.subversion.svnclientadapter
Class SVNNotificationHandler

java.lang.Object
  extended by org.tigris.subversion.svnclientadapter.SVNNotificationHandler

public abstract class SVNNotificationHandler
extends java.lang.Object

Notification handler : It sends notifications to all listeners


Field Summary
protected  java.io.File baseDir
           
protected  int command
           
protected  boolean logEnabled
           
protected  java.util.Set notifylisteners
           
 
Constructor Summary
SVNNotificationHandler()
           
 
Method Summary
 void add(ISVNNotifyListener listener)
          Add a notification listener
 void disableLog()
          disable all logging
 void enableLog()
          restore logging
 void logCommandLine(java.lang.String commandLine)
          log the command line
 void logCompleted(java.lang.String message)
           
 void logError(java.lang.String message)
           
 void logException(java.lang.Exception clientException)
          To call when a method of ClientAdapter throw an exception
 void logMessage(java.lang.String message)
           
 void logRevision(long revision, java.lang.String path)
           
 void notifyListenersOfChange(java.lang.String path)
           
 void notifyListenersOfChange(java.lang.String path, SVNNodeKind kind)
           
 void remove(ISVNNotifyListener listener)
          Remove a notification listener
 void setBaseDir()
           
 void setBaseDir(java.io.File baseDir)
          set the baseDir : directory to use as base directory when path is relative
 void setCommand(int command)
          set the command
protected  boolean skipCommand()
          For certain commands we just want to skip the logging of the command line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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