public class JavaHLEventHandler extends Object implements ISVNEventHandler
UNKNOWN
NULL
Constructor and Description |
---|
JavaHLEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
cancelOperation() |
void |
checkCancelled()
Checks if the current operation is cancelled (somehow interrupted)
and should throw an SVNCancelException or notify the handler if exists.
|
void |
handleEvent(SVNEvent event,
double progress)
Handles the current event.
|
void |
resetPathPrefix() |
void |
setCancelOperation(boolean cancelOperation) |
void |
setNotifyCallback(ClientNotifyCallback notifyCallback) |
void |
setPathPrefix(String pathPrefix) |
public void setNotifyCallback(ClientNotifyCallback notifyCallback)
public void setCancelOperation(boolean cancelOperation)
public void cancelOperation()
public void setPathPrefix(String pathPrefix)
public void resetPathPrefix()
public void handleEvent(SVNEvent event, double progress)
ISVNEventHandler
Generally all operations represented by do*() methods of SVN*Client objects are followed by generating a sequence of events that are passed to the registered ISVNEventHandler object for custom processing. For example, during an update operation each local item being modified is signaled about by dispatching a specific for this item SVNEvent object to this method where this event can be scrutinized and handled in a desired way.
handleEvent
in interface ISVNEventHandler
event
- the current event that keeps detailed information on
the type of action occured and other attributes like path,
status, etc.progress
- currently reserved for future use; now it's value
is always set to ISVNEventHandler.UNKNOWN
public void checkCancelled() throws SVNCancelException
ISVNCanceller
checkCancelled
in interface ISVNCanceller
SVNCancelException
Copyright © 2022. All rights reserved.