Class NoContentButRouteHandler

All Implemented Interfaces:
Handler, RouterNanoHTTPD.UriResponder

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

    • NoContentButRouteHandler

      public NoContentButRouteHandler(String entity)
  • Method Details

    • isNoContentResponseButRoute

      protected abstract String isNoContentResponseButRoute(Session userSession)
      Description copied from class: BaseHandler
      Overwrite this if your handler doesn't have an output. When a new route (e.g. 'users/index') is returned, that new route is loaded by a script refresh. If null is returned, nothing happens.
      Overrides:
      isNoContentResponseButRoute in class BaseHandler
      Parameters:
      userSession - user session
      Returns:
      null or a new route
    • 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