public class ProductLookup
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
class |
ProductLookup.Context
Inner class used to store servlet context information.
|
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
ProductLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected ProductLookup.Context |
createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Creates the servlet context inner class.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles HTTP GET requests.
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles HTTP POST requests.
|
protected void |
doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean post)
Processes the request.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doGet in class javax.servlet.http.HttpServletrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.java.io.IOException - - if an error occurs while processing the
request or response.javax.servlet.ServletException - - if an error occurs while
processing the request or response.public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
doPost in class javax.servlet.http.HttpServletrequest - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.java.io.IOException - - if an error occurs while processing the
request or response.javax.servlet.ServletException - - if an error occurs while
processing the request or response.protected void doRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean post)
throws java.io.IOException,
javax.servlet.ServletException
request - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.java.io.IOException - - if an error occurs while processing the
request or response.javax.servlet.ServletException - - if an error occurs while
processing the request or response.protected ProductLookup.Context createContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doPost method.request - (HttpServletRequest) The servlet's incoming request.response - (HttpServletResponse) The servlet's outgoing response.