org.apache.tapestry5.services

## Interface Dispatcher

- All Known Implementing Classes:
    AssetDispatcher, ComponentEventDispatcher, ModuleDispatcher, PageRenderDispatcher, RootPathDispatcher

      @UsesOrderedConfiguration(value=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

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

- - ### Method Detail

    - #### 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`

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.