cscie259.project3.wahoo
Class Login
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
cscie259.project3.wahoo.WahooServlet
cscie259.project3.wahoo.Login
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class Login
- extends WahooServlet
This servlet logs the user into the Wahoo portal.
You MAY modify this file.
- Version:
- 8.0
- Author:
- Computer Science E-259, YOUR NAME GOES HERE
- See Also:
- Serialized Form
Constructor Summary |
Login()
|
Method Summary |
void |
displayLoginForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String error)
Displays the login form, with an optional error string. |
protected void |
doWork(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Presents user with login screen and processes login attempts
and account creations. |
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 |
Login
public Login()
displayLoginForm
public void displayLoginForm(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String error)
throws java.io.IOException,
javax.servlet.ServletException
- Displays the login form, with an optional error string.
- Parameters:
request
- HTTP request objectresponse
- HTTP response objecterror
- optional error string
- Throws:
java.io.IOException
- if an IO-related error occurs
javax.servlet.ServletException
- if a servlet-related error occurs
doWork
protected void doWork(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Presents user with login screen and processes login attempts
and account creations.
- Specified by:
doWork
in class WahooServlet
- Parameters:
request
- HTTP request objectresponse
- HTTP response object
- Throws:
java.io.IOException
- if a file-related error occurs
javax.servlet.ServletException
- if a servlet-related error occurs