|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ssh.sft.AbstractPolicy
A default implementation for policies.
| Constructor Summary | |
AbstractPolicy()
|
|
| Method Summary | |
void |
complete(Location loc,
SftException ex)
|
boolean |
createDir(Location dir)
|
boolean |
enterDir(Directory dir)
Invoked when a directory is about to be entered and its contents are to be processed. |
CharConversion |
fromSource(File src)
|
void |
leaveDir(Directory dir)
Invoked when the recursive processing of a directory has finished. |
void |
list(File file)
|
boolean |
overwrite(File src,
File dst)
Invoked when an existing file is about to be overwritten. |
boolean |
remove(File file)
Invoked when a file is about to be removed. |
boolean |
removeDir(Directory dir)
|
boolean |
start(File src,
Location dst)
Invoked when a file copy operation from src to dst is started. |
CharConversion |
toDest(Location dst)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPolicy()
| Method Detail |
public boolean start(File src,
Location dst)
Policies.Copy
start in interface Policies.Copysrc - the path to copy fromdst - the path to copy to
public boolean overwrite(File src,
File dst)
Policies.Copy
overwrite in interface Policies.Copysrc - the path to the file that is about to overwritedst - the path to the file that is about to be overwritten
public CharConversion fromSource(File src)
fromSource in interface Policies.Copypublic CharConversion toDest(Location dst)
toDest in interface Policies.Copypublic boolean remove(File file)
Policies.Remove
remove in interface Policies.Removefile - The file to be removed
public boolean enterDir(Directory dir)
Policies.Dir
enterDir in interface Policies.Dirdir - the directory to be entered
public void leaveDir(Directory dir)
Policies.Dir
leaveDir in interface Policies.Dirdir - the directory that is leftpublic void list(File file)
list in interface Policies.Dir
public void complete(Location loc,
SftException ex)
throws SftException
complete in interface Policies.DirSftExceptionpublic boolean createDir(Location dir)
createDir in interface Policies.CopyDirpublic boolean removeDir(Directory dir)
removeDir in interface Policies.RemoveDir
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||