Interface SslContextProvider
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable,java.util.function.Supplier<io.netty.handler.ssl.SslContext>
- All Known Subinterfaces:
PermutableSslContextProvider
- All Known Implementing Classes:
AutoRebuildSslContextProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SslContextProvider extends java.util.function.Supplier<io.netty.handler.ssl.SslContext>, java.io.CloseableProvidesSslContextinstance for HTTP server.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()Close this provider and releases any system resources associated with it.io.netty.handler.ssl.SslContextget()Returns theSslContextinstance.
-
-
-
Method Detail
-
get
io.netty.handler.ssl.SslContext get()
Returns theSslContextinstance.- Specified by:
getin interfacejava.util.function.Supplier<io.netty.handler.ssl.SslContext>- Returns:
- a
SslContext
-
close
default void close() throws java.io.IOExceptionClose this provider and releases any system resources associated with it.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException- if an I/O error occurs
-
-