Package com.io7m.idstore.server.user_v1
Class IdU1HandlerCoreMaintenanceAware
java.lang.Object
com.io7m.idstore.server.user_v1.IdU1HandlerCoreMaintenanceAware
- All Implemented Interfaces:
IdHTTPHandlerFunctionalCoreType
public final class IdU1HandlerCoreMaintenanceAware
extends Object
implements IdHTTPHandlerFunctionalCoreType
A core that executes the given core if the server is not closed for maintenance.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Execute the core.withMaintenanceAwareness
(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPHandlerFunctionalCoreType inCore)
-
Method Details
-
withMaintenanceAwareness
public static IdHTTPHandlerFunctionalCoreType withMaintenanceAwareness(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPHandlerFunctionalCoreType inCore) - Parameters:
services
- The servicesinCore
- The executed core- Returns:
- A core that executes the given core if the server is not closed for maintenance
-
execute
public IdHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Description copied from interface:IdHTTPHandlerFunctionalCoreType
Execute the core.- Specified by:
execute
in interfaceIdHTTPHandlerFunctionalCoreType
- Parameters:
request
- The requestinformation
- The request information- Returns:
- The response
-