org.apache.tapestry.services
Interface Dispatcher

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

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.

See Also:
org.apache.tapestry.services.TapestryModule#contributeMasterDispatcher(org.apache.tapestry.ioc.OrderedConfiguration, ClasspathAssetAliasManager, org.apache.tapestry.internal.services.ResourceCache, org.apache.tapestry.internal.services.ResourceStreamer, PageRenderRequestHandler, ComponentEventRequestHandler, ComponentClassResolver, ContextValueEncoder, String)

Method Summary
 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 servlet container should be allowed to handle the request
Throws:
IOException


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.