Class SVNNotificationHandler
java.lang.Object
org.tigris.subversion.svnclientadapter.SVNNotificationHandler
Notification handler :
It sends notifications to all listeners
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ISVNNotifyListener listener) Add a notification listenervoiddisable all loggingvoidrestore loggingvoidlogCommandLine(String commandLine) log the command linevoidlogCompleted(String message) voidvoidlogException(Exception clientException) To call when a method of ClientAdapter throw an exceptionvoidlogMessage(String message) voidlogRevision(long revision, String path) voidvoidnotifyListenersOfChange(String path, SVNNodeKind kind) voidremove(ISVNNotifyListener listener) Remove a notification listenervoidvoidsetBaseDir(File baseDir) set the baseDir : directory to use as base directory when path is relativevoidsetCommand(int command) set the commandprotected booleanFor certain commands we just want to skip the logging of the command line
-
Field Details
-
notifylisteners
-
command
protected int command -
logEnabled
protected boolean logEnabled -
baseDir
-
-
Constructor Details
-
SVNNotificationHandler
public SVNNotificationHandler()
-
-
Method Details
-
add
Add a notification listener- Parameters:
listener-
-
remove
Remove a notification listener- Parameters:
listener-
-
enableLog
public void enableLog()restore logging -
disableLog
public void disableLog()disable all logging -
logMessage
-
logError
-
logRevision
-
logCompleted
-
setCommand
public void setCommand(int command) set the command- Parameters:
command-
-
logCommandLine
log the command line- Parameters:
commandLine-
-
logException
To call when a method of ClientAdapter throw an exception- Parameters:
clientException-
-
setBaseDir
set the baseDir : directory to use as base directory when path is relative- Parameters:
baseDir-
-
setBaseDir
public void setBaseDir() -
notifyListenersOfChange
-
notifyListenersOfChange
-
skipCommand
protected boolean skipCommand()For certain commands we just want to skip the logging of the command line
-