com.izforge.izpack.util.os
Class WinSetupDefaultCallbackHandler

java.lang.Object
  extended by com.izforge.izpack.util.os.WinSetupDefaultCallbackHandler
All Implemented Interfaces:
WinSetupQueueCallbackInterface

public class WinSetupDefaultCallbackHandler
extends Object
implements WinSetupQueueCallbackInterface


Field Summary
 
Fields inherited from interface com.izforge.izpack.util.os.WinSetupQueueCallbackInterface
FILEOP_ABORT, FILEOP_DOIT, FILEOP_NEWPATH, FILEOP_RETRY, FILEOP_SKIP
 
Constructor Summary
WinSetupDefaultCallbackHandler()
           
 
Method Summary
 List<SystemErrorException> getExceptions()
           
 int handleCopyError(String source, String target, int errCode, String errMsg)
          Handles a copy error notification occuring during a file queue commit.
 int handleDeleteError(String target, int errCode, String errMsg)
          Handles a delete error notification occuring during a file queue commit.
 int handleNeedMedia(String tagfile, String description, String sourcePath, String sourceFile)
          Handles a need media notification occuring during a file queue commit.
 int handleRenameError(String source, String target, int errCode, String errMsg)
          Handles a rename error notification occuring during a file queue commit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WinSetupDefaultCallbackHandler

public WinSetupDefaultCallbackHandler()
Method Detail

handleNeedMedia

public int handleNeedMedia(String tagfile,
                           String description,
                           String sourcePath,
                           String sourceFile)
Description copied from interface: WinSetupQueueCallbackInterface
Handles a need media notification occuring during a file queue commit. In that case, a common problem with a source file happened (blocked or does not exist).

Specified by:
handleNeedMedia in interface WinSetupQueueCallbackInterface
Returns:
One of the allowed callback return codes

handleCopyError

public int handleCopyError(String source,
                           String target,
                           int errCode,
                           String errMsg)
Description copied from interface: WinSetupQueueCallbackInterface
Handles a copy error notification occuring during a file queue commit.

Specified by:
handleCopyError in interface WinSetupQueueCallbackInterface
Parameters:
source - Source file
target - Target file
Returns:
One of the allowed callback return codes

handleDeleteError

public int handleDeleteError(String target,
                             int errCode,
                             String errMsg)
Description copied from interface: WinSetupQueueCallbackInterface
Handles a delete error notification occuring during a file queue commit.

Specified by:
handleDeleteError in interface WinSetupQueueCallbackInterface
Parameters:
target - Target file
Returns:
One of the allowed callback return codes

handleRenameError

public int handleRenameError(String source,
                             String target,
                             int errCode,
                             String errMsg)
Description copied from interface: WinSetupQueueCallbackInterface
Handles a rename error notification occuring during a file queue commit.

Specified by:
handleRenameError in interface WinSetupQueueCallbackInterface
Parameters:
source - Source file
target - Target file
Returns:
One of the allowed callback return codes

getExceptions

public List<SystemErrorException> getExceptions()


Copyright © 2018. All rights reserved.