com.ibm.websphere.samples.plantsbywebspherewar
Class AccountServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.ibm.websphere.samples.plantsbywebspherewar.AccountServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class AccountServlet
- extends javax.servlet.http.HttpServlet
Servlet to handle customer account actions, such as login and register.
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process incoming HTTP GET requests |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process incoming HTTP POST requests |
void |
init(javax.servlet.ServletConfig config)
Servlet initialization. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_ACCOUNT
public static final java.lang.String ACTION_ACCOUNT
- See Also:
- Constant Field Values
ACTION_ACCOUNTUPDATE
public static final java.lang.String ACTION_ACCOUNTUPDATE
- See Also:
- Constant Field Values
ACTION_LOGIN
public static final java.lang.String ACTION_LOGIN
- See Also:
- Constant Field Values
ACTION_REGISTER
public static final java.lang.String ACTION_REGISTER
- See Also:
- Constant Field Values
ACTION_SETLOGGING
public static final java.lang.String ACTION_SETLOGGING
- See Also:
- Constant Field Values
AccountServlet
public AccountServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Servlet initialization.
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process incoming HTTP GET requests
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Process incoming HTTP POST requests
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
request
- Object that encapsulates the request to the servletresponse
- Object that encapsulates the response from the servlet
- Throws:
javax.servlet.ServletException
java.io.IOException