Class 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 Detail

      • WebDavServiceInitParams

        public WebDavServiceInitParams()
        Default constructor, all initial parameters take default values. The list of default parameters values may be obtained from InitParamsDefaults.
      • WebDavServiceInitParams

        public WebDavServiceInitParams​(org.exoplatform.container.xml.InitParams params)
        Create an instance of WebDAV service initial parameters from InitParams which 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 receives Map<String, String> instead of InitParams and we cannot pass multi-valued parameters in the form of String -> Map To overcome this shortage we pass a set of parameter values as a single String with 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()
      • getUntrustedUserAgents

        public Set<String> getUntrustedUserAgents()
      • getUntrustedUserAgentsPattern

        public Set<Pattern> getUntrustedUserAgentsPattern()
      • isUntrustedUserAgent

        public boolean isUntrustedUserAgent​(String userAgent)
      • getAllowedFileNodeTypes

        public Set<String> getAllowedFileNodeTypes()
      • getAllowedFolderNodeTypes

        public Set<String> getAllowedFolderNodeTypes()
      • getCacheControlMap

        public Map<javax.ws.rs.core.MediaType,​String> getCacheControlMap()
      • 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)
      • setXsltParams

        public void setXsltParams​(Map<String,​String> xsltParams)
      • setUntrustedUserAgents

        public void setUntrustedUserAgents​(Set<String> untrustedUserAgents)
      • setAllowedFileNodeTypes

        public void setAllowedFileNodeTypes​(Set<String> allowedFileNodeTypes)
      • 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)