public class GoogleStoreServlet extends GenericServlet
| Constructor and Description |
|---|
GoogleStoreServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
init()
Initialize the servlet.
|
void |
service(ServletRequest request,
ServletResponse response)
Service a request.
|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toStringpublic void init()
GenericServletinit in class GenericServletpublic void service(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletException
Servletservice simultaneously. Normally,
req and res will actually be
HttpServletRequest and HttpServletResponse
classes.request - request information. Normally servlets will cast this
to HttpServletRequestresponse - response information. Normally servlets will cast this
to HttpServletRequestjava.io.IOExceptionServletException