Class WebDAVServlet.WebDAVInitParameters

  • Enclosing class:
    WebDAVServlet

    public static class WebDAVServlet.WebDAVInitParameters
    extends java.lang.Object
    Bean to hold injected initialization parameters.
    Since:
    V3.5 Team
    Author:
    Derek Hulley
    • Constructor Detail

      • WebDAVInitParameters

        public WebDAVInitParameters()
    • Method Detail

      • getEnabled

        public boolean getEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getStoreName

        public java.lang.String getStoreName()
                                      throws javax.servlet.ServletException
        Returns:
        Returns the name of the store
        Throws:
        javax.servlet.ServletException - if the store name was not set
      • setStoreName

        public void setStoreName​(java.lang.String storeName)
      • getRootPath

        public java.lang.String getRootPath()
                                     throws javax.servlet.ServletException
        Returns:
        Returns the WebDAV root path within the store
        Throws:
        javax.servlet.ServletException - if the root path was not set
      • setRootPath

        public void setRootPath​(java.lang.String rootPath)
      • getUrlPathPrefix

        public java.lang.String getUrlPathPrefix()
        Get the path prefix that generated URLs should exhibit, e.g.
           http://server.name<prefix>/path/to/file.txt
         
        In the default set up this would be of the form /context-path/servlet-name e.g. /alfresco/webdav:
           http://server.name/alfresco/webdav/path/to/file.txt
         
        however if using URL rewriting rules or a reverse proxy in front of the webdav server you may choose to use, for example / for shorter URLs.
           http://server.name/path/to/file.txt
         

        Leaving this property blank will cause the prefix used to be /context-path/servlet-name

        Returns:
        the urlPathPrefix
      • setUrlPathPrefix

        public void setUrlPathPrefix​(java.lang.String urlPathPrefix)
        Parameters:
        urlPathPrefix - String