Class NoContentHandler

All Implemented Interfaces:
Handler, RouterNanoHTTPD.UriResponder
Direct Known Subclasses:
NoContentAndConfigHandler

public abstract class NoContentHandler extends BaseHandler
Handler that has no content output, no web resource. The default index will be loaded.
  • Constructor Details

    • NoContentHandler

      public NoContentHandler(String entity)
  • Method Details

    • isNoContentResponse

      protected final boolean isNoContentResponse()
      Description copied from class: BaseHandler
      Overwrite this if your handler doesn't have an output. A no content response (HTTP 204) with no content will be generated and the current page will be refreshed!
      Overrides:
      isNoContentResponse in class BaseHandler
      Returns:
      true if a script refresh on the default index handler should be made.
    • getResource

      public final String getResource()
      Description copied from class: BaseHandler
      Get web resource file as it lies on the file system relatively to the started server process.
      Specified by:
      getResource in interface Handler
      Specified by:
      getResource in class BaseHandler
      Returns:
      web resource