RoseHill
Class RHDeleteUser

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--RoseHill.RHDeleteUser
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RHDeleteUser
extends javax.servlet.http.HttpServlet

Adds a new user to the authorized users.

See Also:
Serialized Form

Constructor Summary
RHDeleteUser()
           
 
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 a form to input the username that need to be deleted.
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Deletes a user from the authorized users.
 java.lang.String getUsers(java.io.PrintWriter out)
          Gets the list of current authorized users.
 
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
 

Constructor Detail

RHDeleteUser

public RHDeleteUser()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws javax.servlet.ServletException,
                  java.io.IOException
Shows a form to input the username that need to be deleted.
Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - the request input stream
res - 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
Deletes a user from the authorized users.
Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - the request input stream
res - 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.

getUsers

public java.lang.String getUsers(java.io.PrintWriter out)
Gets the list of current authorized users.
Parameters:
out - the ouput stream
Returns:
String the list of users