Create RequestHandler interface:
interface RequestHandler {
void handle(request, response);
boolean accept();
boolean enable();
}
The WroFilter can be configured with a list of handlers. Handlers should be
applied before the actual processing is performed. Only one handler can be
applied. Once a handler is applied, other handlers are skipped and processing
is not performed.
The default implementations of RequestHandler should be:
ReloadCacheRequestHandler, ReloadModelRequestHandler &
ExposeModelAsJsonRequestHandler.
The purpose of request handlers is to plug-in custom behavior for a given
request, like API calls.
Original issue reported on code.google.com by alex.obj...@gmail.com on 16 May 2012 at 7:10
Original issue reported on code.google.com by
alex.obj...@gmail.com
on 16 May 2012 at 7:10