Why is it advised to override doGet()&/doPost() instead directly overriding service()? Is it only because the possibility of having implementations for for other doXyz() methods is not possible?
By Overriding service() method, you need to implement logic to read the type of HTTP request (GET/POST). But, currently the service method already does this and dispatches the request to doPost()/doGet() method appropriately.
Everybody's invited. Except this tiny ad:
Gift giving made easy with the permaculture playing cards