1 19 20 package com.sslexplorer.vfs; 21 22 import java.io.IOException ; 23 24 import org.apache.commons.vfs.FileObject; 25 26 import com.sslexplorer.security.PasswordCredentials; 27 import com.sslexplorer.vfs.webdav.DAVAuthenticationRequiredException; 28 import com.sslexplorer.vfs.webdav.DAVTransaction; 29 30 39 public interface VFSMount { 40 41 46 public VFSStore getStore(); 47 48 57 public VFSResource getResource(String path, PasswordCredentials requestCredentials) throws IOException ; 58 59 65 public String getMountString(); 66 67 68 73 public boolean isReadOnly(); 74 75 84 public FileObject createAuthenticatedVFSFileObject(String path, PasswordCredentials requestCredentials) throws IOException , DAVAuthenticationRequiredException; 85 86 95 public void resourceCopy(VFSResource resource, VFSResource destination, DAVTransaction transaction, Throwable exception); 96 97 105 public void resourceDelete(VFSResource resource, DAVTransaction transaction, Throwable exception); 106 107 115 public void resourceAccessList(VFSResource resource, DAVTransaction transaction, Throwable exception); 116 117 123 public void resourceAccessDownloading(VFSResource resource, DAVTransaction transaction); 124 125 132 public void resourceAccessDownloadComplete(VFSResource resource, DAVTransaction transaction, Throwable exception); 133 134 141 public void resourceCollectionCreated(VFSResource resource, DAVTransaction transaction, Throwable exception); 142 143 151 public void resourceMoved(VFSResource resource, VFSResource destination, DAVTransaction transaction, Throwable exception); 152 153 160 public void resourceUpload(VFSResource resource, DAVTransaction transaction, Throwable exception); 161 } 162 | Popular Tags |