use of org.cryptomator.frontend.webdav.WebDavServer in project cryptomator by cryptomator.
the class CryptomatorModule method provideWebDavServer.
@Provides
@Singleton
WebDavServer provideWebDavServer(Binding<InetSocketAddress> serverSocketAddressBinding) {
WebDavServer server = WebDavServer.create();
// no need to unsubscribe eventually, because server is a singleton
EasyBind.subscribe(serverSocketAddressBinding, server::bind);
return server;
}
Aggregations