reactivate reveal()-method of the vault

This commit is contained in:
infeo
2018-02-04 00:12:18 +01:00
parent a2f6a85334
commit bf637f8361
3 changed files with 16 additions and 5 deletions

View File

@@ -8,10 +8,14 @@ public interface NioAdapter {
void mount() throws CommandFailedException;
default void reveal() throws CommandFailedException {
throw new CommandFailedException("Not implemented.");
}
void unmount() throws CommandFailedException;
default void unmountForced() throws CommandFailedException {
throw new CommandFailedException("Operation not supported");
throw new CommandFailedException("Operation not supported.");
}
void stop();

View File

@@ -178,11 +178,8 @@ public class Vault {
}
}
/**
* TODO: implement it again
*/
public void reveal() throws CommandFailedException {
nioAdapter.reveal();
}
// ******************************************************************************

View File

@@ -59,6 +59,16 @@ public class WebDavNioAdapter implements NioAdapter {
}
}
@Override
public void reveal() throws CommandFailedException {
try {
mount.reveal();
} catch (Mounter.CommandFailedException e) {
e.printStackTrace();
throw new CommandFailedException(e);
}
}
@Override
public synchronized void unmount() throws CommandFailedException {
try {