io.muserver.SslContextProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
package io.muserver;
import io.netty.handler.ssl.SslContext;
import java.util.concurrent.atomic.AtomicReference;
class SslContextProvider {
private final AtomicReference nettySslContext = new AtomicReference<>();
public SslContextProvider(SslContext context) {
set(context);
}
public SslContext get() {
return nettySslContext.get();
}
public void set(SslContext newValue) {
nettySslContext.set(newValue);
}
}