RoseHill
Class RHUserLogin
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--RoseHill.RHUserLogin
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class RHUserLogin
- extends javax.servlet.http.HttpServlet
The login process of users to the system.
- See Also:
- Serialized Form
Method Summary |
void |
databaseConnect()
Connects to the rosehill database. |
void |
databaseDisconnect()
Disconnects from the rosehill database. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Shows the login screen for the user to input username and password. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Validates the username and password. |
boolean |
mt()
|
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, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RHUserLogin
public RHUserLogin()
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Shows the login screen for the user to input username and password.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
req
- the request input streamres
- the ouput stream- Throws:
javax.servlet.ServletException
- java.io.IOException
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Validates the username and password.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
req
- the request input streamres
- the ouput stream- Throws:
javax.servlet.ServletException
- java.io.IOException
-
databaseConnect
public void databaseConnect()
- Connects to the rosehill database.
databaseDisconnect
public void databaseDisconnect()
- Disconnects from the rosehill database.
mt
public boolean mt()