Package org.alfresco.repo.webdav
Class WebDAVServlet.WebDAVInitParameters
- java.lang.Object
-
- org.alfresco.repo.webdav.WebDAVServlet.WebDAVInitParameters
-
- Enclosing class:
- WebDAVServlet
public static class WebDAVServlet.WebDAVInitParameters extends Object
Bean to hold injected initialization parameters.- Since:
- V3.5 Team
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description WebDAVInitParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetEnabled()StringgetRootPath()StringgetStoreName()StringgetUrlPathPrefix()Get the path prefix that generated URLs should exhibit, e.g.voidsetEnabled(boolean enabled)voidsetRootPath(String rootPath)voidsetStoreName(String storeName)voidsetUrlPathPrefix(String urlPathPrefix)
-
-
-
Method Detail
-
getEnabled
public boolean getEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getStoreName
public 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(String storeName)
-
getRootPath
public 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(String rootPath)
-
getUrlPathPrefix
public 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(String urlPathPrefix)
- Parameters:
urlPathPrefix- String
-
-