Package org.apache.tapestry5.http.services

# Interface Dispatcher

All Known Implementing Classes:
  `AssetDispatcher`, `ComponentEventDispatcher`, `ModuleDispatcher`, `OpenApiDescriptionDispatcher`, `PageRenderDispatcher`, `RootPathDispatcher`

@UsesOrderedConfiguration(Dispatcher.class) public interface Dispatcher
A dispatcher is responsible for recognizing an incoming request. Dispatchers form an ordered chain of command, with each dispatcher responsible for recognizing requests that it can process. This is the interface for the MasterDispatcher service, which takes an ordered configuration of Dispatchers (that is, the chain of command pattern). If no dispatcher processes the request, it will ultimately be passed off to the servlet container.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `dispatch(Request request, Response response)`
  Analyzes the incoming request and performs an appropriate operation for each.

- ## Method Details

  - ### dispatch

    boolean dispatch(Request request, Response response) throws IOException
    Analyzes the incoming request and performs an appropriate operation for each.
    Returns:
      true if a response was delivered, false if the dispatcher did not handle the request (and a search for a handler should continue)
    Throws:
      `IOException`