Search in sources :

Example 1 with WebDavServer

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;
}
Also used : WebDavServer(org.cryptomator.frontend.webdav.WebDavServer) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1 WebDavServer (org.cryptomator.frontend.webdav.WebDavServer)1