001
014
015 package com.liferay.portal.webdav.methods;
016
017 import com.liferay.portal.kernel.util.StringUtil;
018 import com.liferay.portal.kernel.webdav.WebDAVException;
019 import com.liferay.portal.kernel.webdav.WebDAVRequest;
020
021
025 public interface Method {
026
027 public static final String COPY = "COPY";
028
029 public static final String DELETE = "DELETE";
030
031 public static final String GET = "GET";
032
033 public static final String HEAD = "HEAD";
034
035 public static final String LOCK = "LOCK";
036
037 public static final String MKCOL = "MKCOL";
038
039 public static final String MOVE = "MOVE";
040
041 public static final String OPTIONS = "OPTIONS";
042
043 public static final String PROPFIND = "PROPFIND";
044
045 public static final String PROPPATCH = "PROPPATCH";
046
047 public static final String PUT = "PUT";
048
049 public static final String[] SUPPORTED_METHODS_ARRAY = {
050 COPY, DELETE, GET, HEAD, LOCK, MKCOL, MOVE, OPTIONS, PROPFIND,
051 PROPPATCH, PUT, Method.UNLOCK
052 };
053
054 public static final String SUPPORTED_METHODS = StringUtil.merge(
055 SUPPORTED_METHODS_ARRAY);
056
057 public static final String UNLOCK = "UNLOCK";
058
059
070 public int process(WebDAVRequest webDavRequest) throws WebDAVException;
071
072 }