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 TypeMethodDescriptionvoid
add
(ISVNNotifyListener listener) Add a notification listenervoid
disable all loggingvoid
restore loggingvoid
logCommandLine
(String commandLine) log the command linevoid
logCompleted
(String message) void
void
logException
(Exception clientException) To call when a method of ClientAdapter throw an exceptionvoid
logMessage
(String message) void
logRevision
(long revision, String path) void
void
notifyListenersOfChange
(String path, SVNNodeKind kind) void
remove
(ISVNNotifyListener listener) Remove a notification listenervoid
void
setBaseDir
(File baseDir) set the baseDir : directory to use as base directory when path is relativevoid
setCommand
(int command) set the commandprotected boolean
For 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
-