- All Known Implementing Classes:
@UsesOrderedConfiguration(Dispatcher.class) public interface DispatcherA 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.
boolean dispatch(Request request, Response response) throws IOExceptionAnalyzes the incoming request and performs an appropriate operation for each.
- true if a response was delivered, false if the dispatcher did not handle the request (and a search for a handler should continue)