Class IdUVHandlerCoreMaintenanceAware
java.lang.Object
com.io7m.idstore.server.user_view.IdUVHandlerCoreMaintenanceAware
- All Implemented Interfaces:
IdHTTPHandlerFunctionalCoreType
public final class IdUVHandlerCoreMaintenanceAware
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:IdHTTPHandlerFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceIdHTTPHandlerFunctionalCoreType- Parameters:
request- The requestinformation- The request information- Returns:
- The response
-