Class SettingsHandler

All Implemented Interfaces:
Handler, RouterNanoHTTPD.UriResponder

public class SettingsHandler extends NoContentAndConfigHandler
Settings handler.
  • Constructor Details

    • SettingsHandler

      public SettingsHandler(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