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 Type
  Method
  Description
  `IdHTTPServletResponseType`
  `execute(jakarta.servlet.http.HttpServletRequest request, IdHTTPServletRequestInformation information)`
  Execute the core.
  `static IdHTTPServletFunctionalCoreType`
  `withMaintenanceAwareness(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPServletFunctionalCoreType inCore)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### withMaintenanceAwareness

    public static IdHTTPServletFunctionalCoreType withMaintenanceAwareness(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPServletFunctionalCoreType inCore)
    Parameters:
      `services` - The services
      `inCore` - 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: `IdHTTPServletFunctionalCoreType`
    Execute the core.
    Specified by:
      `execute` in interface `IdHTTPServletFunctionalCoreType`
    Parameters:
      `request` - The request
      `information` - The extra request information
    Returns:
      The response