⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 davresource.java

📁 这是linux下ssl vpn的实现程序
💻 JAVA
字号:
package com.sslexplorer.vfs.webdav;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Date;
import java.util.Iterator;

import org.apache.commons.vfs.FileObject;

public interface DAVResource extends Comparable{

    public static final String PREFIX = ".dav_";

    public static final String SUFFIX = ".temp";

    public void verifyAccess() throws DAVAuthenticationRequiredException, Exception;
    
    public boolean isNull() ;

    public boolean isCollection();

    public boolean isResource();
    
    public boolean isMount();

    public DAVMount getMount();

    public String getDisplayName();
    
    public String getWebFolderPath();

    public String getBasename();

    /**
     * Get the path of this resource relative to its its <i>Mount</i>. This
     * should be an empty string if the resource is the root of the mount.
     * 
     * @return relative path
     */
    public String getRelativePath();

    public URI getRelativeURI();

    public DAVResource getParent();

    public Iterator getChildren() throws IOException, DAVAuthenticationRequiredException;

    public String getContentType();

    public Long getContentLength();

    public Date getLastModified();

    public String getEntityTag();

    public void delete() throws DAVMultiStatus, IOException;

    public void copy(DAVResource dest, boolean overwrite, boolean recursive) throws DAVMultiStatus, IOException;

    public void move(DAVResource dest, boolean overwrite) throws DAVMultiStatus, IOException;

    public void makeCollection();

    public DAVInputStream read();

    public DAVOutputStream write();

    public void start(DAVTransaction transaction);
    
    public FileObject getFile() throws IOException;
    
    public DAVTransaction getTransaction();
    
    /**
     * Return the full URI. This will be relative to the root of the VFS, i.e.
     * <i>/[store]/[mount]/[path]</i>. The URI should encoded invalid
     * path characters.
     * 
     * @return full URI relative to the server root
     */
    public URI getFullURI() ;

    /**
     * Return the full URI. This will be relative to the root of the VFS, i.e.
     * <i>/[store]/[mount]/[path]</i> and invalid path characters will not
     * be encoded.
     * 
     * @return full path relative to the server root
     */
    public String getFullPath();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -