org.apache.lucene.gdata.servlet
Class AbstractGdataServlet

java.lang.Object
  extended by HttpServlet
      extended by org.apache.lucene.gdata.servlet.AbstractGdataServlet
Direct Known Subclasses:
AccountAdministrationServlet, FeedAdministrationServlet, RequestControllerServlet

public abstract class AbstractGdataServlet
extends HttpServlet

Provides an abstract class to be subclassed to create an GDATA servlet suitable for a GDATA serverside implementation.

Author:
Simon Willnauer
See Also:
javax.servlet.http.HttpServlet

Field Summary
protected static RequestHandlerFactory HANDLER_FACTORY
           
 
Constructor Summary
AbstractGdataServlet()
           
 
Method Summary
 void init(ServletConfig arg0)
           
protected  void service(HttpServletRequest arg0, HttpServletResponse arg1)
          This overwrites the protected service method to dispatch the request to the correponding do method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLER_FACTORY

protected static RequestHandlerFactory HANDLER_FACTORY
Constructor Detail

AbstractGdataServlet

public AbstractGdataServlet()
Method Detail

service

protected void service(HttpServletRequest arg0,
                       HttpServletResponse arg1)
                throws ServletException,
                       IOException
This overwrites the protected service method to dispatch the request to the correponding do method. There is ususaly no need for overwriting this method. The GData protool and the Google GData API uses the x-http-method-override header to get through firewalls. The http method will be overritten by the x-http-method-override and dispatched to the doXxx methods defined in this class. This method is an GDATA-specific version of the javax.servlet.Servlet#service method.

Throws:
ServletException
IOException
See Also:
HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

init

public void init(ServletConfig arg0)
          throws ServletException
Throws:
ServletException
See Also:
javax.servlet.GenericServlet#init(javax.servlet.ServletConfig)


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.