Class WebDavServiceInitParams
- java.lang.Object
-
- org.exoplatform.services.jcr.webdav.WebDavServiceInitParams
-
public class WebDavServiceInitParams extends Object
Provides means to parse WebDAV service initial parameters and gain access to their values.- Version:
- $Id$
- Author:
- Dmitry Kuleshov - dmi3.kuleshov@gmail.com
-
-
Constructor Summary
Constructors Constructor Description WebDavServiceInitParams()Default constructor, all initial parameters take default values.WebDavServiceInitParams(Map<String,String> params)Create an instance of WebDAV service initial parameters from parameters map.WebDavServiceInitParams(org.exoplatform.container.xml.InitParams params)Create an instance of WebDAV service initial parameters fromInitParamswhich are obtained from configuration file.
-
Method Summary
-
-
-
Constructor Detail
-
WebDavServiceInitParams
public WebDavServiceInitParams()
Default constructor, all initial parameters take default values. The list of default parameters values may be obtained fromInitParamsDefaults.
-
WebDavServiceInitParams
public WebDavServiceInitParams(org.exoplatform.container.xml.InitParams params)
Create an instance of WebDAV service initial parameters fromInitParamswhich are obtained from configuration file.- Parameters:
params- initial parameters
-
WebDavServiceInitParams
public WebDavServiceInitParams(Map<String,String> params)
Create an instance of WebDAV service initial parameters from parameters map. Please note, that this constructor receivesMap<String, String>instead of InitParams and we cannot pass multi-valued parameters in the form ofString->MapTo overcome this shortage we pass a set of parameter values as a singleStringwith each value separated by comma (",") i.e. "agent1, agent2, agent3"- Parameters:
params- initial parameters
-
-
Method Detail
-
getDefaultFolderNodeType
public String getDefaultFolderNodeType()
-
getDefaultFileNodeType
public String getDefaultFileNodeType()
-
getDefaultFileMimeType
public String getDefaultFileMimeType()
-
getDefaultUpdatePolicyType
public String getDefaultUpdatePolicyType()
-
getDefaultAutoVersionType
public String getDefaultAutoVersionType()
-
isUntrustedUserAgent
public boolean isUntrustedUserAgent(String userAgent)
-
setDefaultFolderNodeType
public void setDefaultFolderNodeType(String defaultFolderNodeType)
-
setDefaultFileNodeType
public void setDefaultFileNodeType(String defaultFileNodeType)
-
setDefaultFileMimeType
public void setDefaultFileMimeType(String defaultFileMimeType)
-
setDefaultUpdatePolicyType
public void setDefaultUpdatePolicyType(String defaultUpdatePolicyType)
-
setDefaultAutoVersionType
public void setDefaultAutoVersionType(String defaultAutoVersionType)
-
setAllowedFolderNodeTypes
public void setAllowedFolderNodeTypes(Set<String> allowedFolderNodeTypes)
-
setCacheControlMap
public void setCacheControlMap(Map<javax.ws.rs.core.MediaType,String> cacheControlMap)
-
setAllowedAutoVersionPath
public void setAllowedAutoVersionPath(javax.ws.rs.core.MultivaluedMap<String,String> allowedAutoVersionPath)
-
getAllowedAutoVersionPath
public javax.ws.rs.core.MultivaluedMap<String,String> getAllowedAutoVersionPath()
-
setEnableAutoVersion
public void setEnableAutoVersion(boolean enableAutoVersion)
-
isEnableAutoVersion
public boolean isEnableAutoVersion()
-
getFolderListingAllowedRegex
public String getFolderListingAllowedRegex()
-
setFolderListingAllowedRegex
public void setFolderListingAllowedRegex(String folderListingAllowedRegex)
-
-