public class PrivilegedFileReplicator extends Object implements FileReplicator, VfsComponent
| Constructor and Description |
|---|
PrivilegedFileReplicator(FileReplicator replicator) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the replicator.
|
void |
init()
Initializes the component.
|
File |
replicateFile(FileObject srcFile,
FileSelector selector)
Creates a local copy of the file, and all its descendants.
|
void |
setContext(VfsComponentContext context)
Sets the context for the replicator.
|
void |
setLogger(org.apache.commons.logging.Log logger)
Sets the Logger to use for the component.
|
public PrivilegedFileReplicator(FileReplicator replicator)
public void setLogger(org.apache.commons.logging.Log logger)
setLogger in interface VfsComponentlogger - The logger.public void setContext(VfsComponentContext context)
setContext in interface VfsComponentcontext - The component context.public void init()
throws FileSystemException
init in interface VfsComponentFileSystemException - if an error occurs.public void close()
close in interface VfsComponentpublic File replicateFile(FileObject srcFile, FileSelector selector) throws FileSystemException
replicateFile in interface FileReplicatorsrcFile - The source FileObject.selector - The file selector.FileSystemException - if an error occurs.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.