Class NoContent204Handler

All Implemented Interfaces:
Handler, RouterNanoHTTPD.UriResponder

public final class NoContent204Handler extends NoContentAndConfigHandler
No content handler - HTTP 204.
  • Constructor Details

    • NoContent204Handler

      public NoContent204Handler(String entity)
  • Method Details

    • readData

      public HandlerResponse readData(BeetRootHTTPSession session, int id) throws Exception
      Description copied from class: BaseHandler
      Read data from DB that must be filled when the template is parsed. Used by index and view handlers.
      Overrides:
      readData in class BaseHandler
      Parameters:
      session - HTTP session
      id - db record id > 0 if a single record should be read otherwise < 0;
      Returns:
      response or null, null means success, response's status must be checked!
      Throws:
      Exception - exception
    • getStatus

      public org.nanohttpd.protocols.http.response.IStatus getStatus()
      Overrides:
      getStatus in class BaseHandler