org.apache.tapestry5.services
Interface Dispatcher
- All Known Implementing Classes:
- AssetDispatcher, ComponentEventDispatcher, 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 utltimately be passed off to the servlet container.
Method Summary |
boolean |
dispatch(Request request,
Response response)
Analyzes the incoming request and performs an appropriate operation for each. |
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
Copyright © 2003-2012 The Apache Software Foundation.