Class WebDavServletController
- java.lang.Object
-
- org.cryptomator.frontend.webdav.servlet.WebDavServletController
-
@PerServlet public class WebDavServletController extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIgetServletRootUri()Mounter.Mountmount(MountParams mountParams)Tries to mount the resource served by this servlet as a WebDAV drive on the local machine.voidstart()Convenience function to start this servlet.voidstop()Convenience function to stop this servlet.
-
-
-
Method Detail
-
start
public void start() throws ServerLifecycleExceptionConvenience function to start this servlet.- Throws:
ServerLifecycleException- If the servlet could not be started for any unexpected reason.
-
stop
public void stop() throws ServerLifecycleExceptionConvenience function to stop this servlet.- Throws:
ServerLifecycleException- If the servlet could not be stopped for any unexpected reason.
-
getServletRootUri
public java.net.URI getServletRootUri()
- Returns:
- A new http URI constructed from the servers bind addr and port as well as this servlet's contextPath.
-
mount
public Mounter.Mount mount(MountParams mountParams) throws Mounter.CommandFailedException
Tries to mount the resource served by this servlet as a WebDAV drive on the local machine.- Parameters:
mountParams- Optional mount parameters, that may be required for certain operating systems.- Returns:
- A
Mounter.Mountinstance allowing unmounting and revealing the drive. - Throws:
Mounter.CommandFailedException- If mounting failed.
-
-