Interface IDispatchHandler

All Superinterfaces:
IComponent, IHandler, IInitializable, ISystemHandler

public interface IDispatchHandler extends IHandler
  • Field Details

  • Method Details

    • handle

      int handle(HttpServletRequest request, HttpServletResponse response) throws FrameworkException
      Handles the request. The response value tells the DispatchManager how to further handle the request. Prior to the DispatchManager delegating to the IDispatchHandler, a PresentationData is associated with the HttpServletRequest. The following response are valid:
      • DISP_RESPONSE_NONE: The work is complete, don't do anything further
      • DISP_RESPONSE_REDIRECT: Redirect this request with an http Redirect using the PresentationData
      • DISP_RESPONSE_FORWARD: Forward the request to another IDispatchHandler
      • DISP_RESPONSE_FORWARD_RAW: Forward the request to another IDispatchHandler without checking the type
      • DISP_RESPONSE_FORWARD_DEFAULT_GET: Forward the request to the default get IDispatchHandler for the requested resource
      • DISP_RESPONSE_STREAM: Stream the PresentationData back to the user
      • DISP_RESPONSE_PRES: Delegate to the IPresentationManager
      Parameters:
      request - the current HttpServletRequest
      response - the current HttpServletResponse
      Throws:
      FrameworkException