|
The GenericServlet is an abstract class. It provides implementation of methods described in servlet interface like init, destroy etc. It is not dependent on any protocol. The HttpServlet extends GenericServlet and adds http specific behavior to it.It provides wrapping to convert simple request and response to http specific request and response. Like wise GenericServlet can be extended by any other class to implement funactionalities specific to a protocol like FTP. We cannot directly use GenericServlet since it is abstract.
|