Package org.alfresco.repo.webdav
Class WebDAVServlet.WebDAVInitParameters
java.lang.Object
org.alfresco.repo.webdav.WebDAVServlet.WebDAVInitParameters
- Enclosing class:
- WebDAVServlet
Bean to hold injected initialization parameters.
- Since:
- V3.5 Team
- Author:
- Derek Hulley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the path prefix that generated URLs should exhibit, e.g.void
setEnabled
(boolean enabled) void
setRootPath
(String rootPath) void
setStoreName
(String storeName) void
setUrlPathPrefix
(String urlPathPrefix)
-
Constructor Details
-
WebDAVInitParameters
public WebDAVInitParameters()
-
-
Method Details
-
getEnabled
public boolean getEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getStoreName
- Returns:
- Returns the name of the store
- Throws:
javax.servlet.ServletException
- if the store name was not set
-
setStoreName
-
getRootPath
- Returns:
- Returns the WebDAV root path within the store
- Throws:
javax.servlet.ServletException
- if the root path was not set
-
setRootPath
-
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
- Parameters:
urlPathPrefix
- String
-