GDataRequestHandlerpublic interface GDataRequestHandler Based on the Command pattern [GoF], the Command and Controller Strategy
suggests providing a generic interface to the handler components to which the
controller may delegate responsibility, minimizing the coupling among these
components.
Adding to or changing the work that needs to be completed by these handlers
does not require any changes to the interface between the controller and the
handlers, but rather to the type and/or content of the commands. This provides
a flexible and easily extensible mechanism for developers to add request
handling behaviors.
The controller invokes the processRequest method from the corresponding servlet doXXX
method to delegate the request to the handler. |
|