org.apache.lucene.gdata.servlet.handler
Interface GDataRequestHandler
- All Known Implementing Classes:
- AbstractAccountHandler, AbstractFeedHandler, AbstractGdataRequestHandler, AuthenticationHandler, DefaultDeleteHandler, DefaultGetHandler, DefaultInsertHandler, DefaultUpdateHandler, DeleteAccountStrategy, DeleteFeedHandler, InsertAccountStrategy, InsertFeedHandler, UpdateAccountStrategy, UpdateFeedHandler
public 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.
- Author:
- Simon Willnauer
Method Summary |
void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the GDATA Client request |
processRequest
void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
- Processes the GDATA Client request
- Parameters:
request
- - the client request to be processedresponse
- - the response to the client request
- Throws:
javax.servlet.ServletException
- - if a servlet exception is thrown by the request or response
IOException
- - if an input/output error occurs due to accessing an IO steam
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.