Package com.io7m.idstore.server.user_v1
Class IdU1ServletCoreMaintenanceAware
java.lang.Object
com.io7m.idstore.server.user_v1.IdU1ServletCoreMaintenanceAware
- All Implemented Interfaces:
IdHTTPServletFunctionalCoreType
public final class IdU1ServletCoreMaintenanceAware
extends Object
implements IdHTTPServletFunctionalCoreType
A core that executes the given core if the server is not closed for maintenance.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Execute the core.withMaintenanceAwareness(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPServletFunctionalCoreType inCore)
-
Method Details
-
withMaintenanceAwareness
public static IdHTTPServletFunctionalCoreType withMaintenanceAwareness(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPServletFunctionalCoreType 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 IdHTTPServletResponseType execute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information) Description copied from interface:IdHTTPServletFunctionalCoreTypeExecute the core.- Specified by:
executein interfaceIdHTTPServletFunctionalCoreType- Parameters:
request- The requestinformation- The extra request information- Returns:
- The response
-