1 package com.sslexplorer.vfs; 2 3 import java.io.IOException ; 4 import java.net.URI ; 5 import java.util.Date ; 6 import java.util.Iterator ; 7 8 import org.apache.commons.vfs.FileObject; 9 10 import com.sslexplorer.policyframework.LaunchSession; 11 import com.sslexplorer.vfs.webdav.DAVAuthenticationRequiredException; 12 import com.sslexplorer.vfs.webdav.DAVMultiStatus; 13 14 public interface VFSResource extends Comparable { 15 16 public static final String PREFIX = ".dav_"; 17 18 public static final String SUFFIX = ".temp"; 19 20 public static final String PAGEFILE_SYS = "pagefile.sys"; 21 22 public void verifyAccess() throws DAVAuthenticationRequiredException, Exception ; 23 24 public boolean isNull() throws IOException ; 25 26 public boolean isCollection() throws IOException ; 27 28 public boolean isResource() throws IOException ; 29 30 public boolean isMount(); 31 32 public VFSMount getMount(); 33 34 public String getDisplayName(); 35 36 public String getWebFolderPath(); 37 38 public String getBasename(); 39 40 46 public String getRelativePath(); 47 48 public URI getRelativeURI(); 49 50 public VFSResource getParent(); 51 52 public Iterator <VFSResource> getChildren() throws IOException , DAVAuthenticationRequiredException; 53 54 public String getContentType() throws IOException ; 55 56 public Long getContentLength() throws IOException ; 57 58 public Date getLastModified() throws IOException ; 59 60 public String getEntityTag() throws IOException ; 61 62 public void delete() throws DAVMultiStatus, IOException ; 63 64 public void copy(VFSResource dest, boolean overwrite, boolean recursive) throws DAVMultiStatus, IOException ; 65 66 public void move(VFSResource dest, boolean overwrite) throws DAVMultiStatus, IOException ; 67 68 public void makeCollection() throws IOException ; 69 70 public VFSInputStream getInputStream() throws IOException ; 71 72 public VFSOutputStream getOutputStream() throws IOException ; 73 74 public FileObject getFile() throws IOException ; 75 76 83 public URI getFullURI() ; 84 85 92 public String getFullPath(); 93 94 public LaunchSession getLaunchSession(); 95 } 96 | Popular Tags |