Manages the handlers and their invocations. Handlers, which are required to be invoked must be registered with the class using the {@link #addHandler} method. Handlers are allowed for a subsetof Registry API methods (see Java doc of Handler class for more details). Handler authors can further specify exactly for which methods their handlers should engage. For example, handler author may specify his handler should be engaged only for GET and DELETE operations. This class maintains separate maps for each supported operation and puts handlers to corresponding maps once registered.
Handlers are registered with a Filter instance. Filter decides (based on the request) whether or not to invoke its associated handler.
This class has a separate method for each supported operation. These methods are invoked by BasicRegistry once such method is invoked in the Registry API. Then this class iterates through the map corresponding to the invoked method and evaluates filters of registered handlers. For each filter which evaluates to true, its associated handler will be invoked. This process continues either till there is no more handlers or till the processingComplete parameter of the RequestContext is set to true.
There is only one instance of this class exists per registry instance.