Interface HttpServerHandlerProvider
-
- All Superinterfaces:
java.lang.AutoCloseable,java.util.function.Supplier<HttpServerHandler>
- All Known Implementing Classes:
DefaultHttpServerHandlerProvider
- 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 HttpServerHandlerProvider extends java.util.function.Supplier<HttpServerHandler>, java.lang.AutoCloseable
ProvidesHttpServerHandler.- 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.HttpServerHandlerget()Returns aHttpServerHandlerinstance.
-
-
-
Method Detail
-
get
HttpServerHandler get()
Returns aHttpServerHandlerinstance.- Specified by:
getin interfacejava.util.function.Supplier<HttpServerHandler>- Returns:
- a
HttpServerHandler
-
close
default void close() throws java.lang.ExceptionClose this provider and releases any system resources associated with it.- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception- if any error occurs
-
-