Class PriorityManager
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----PriorityManager
- public class PriorityManager
- extends HttpServlet
- implements SingleThreadModel
-
PriorityManager()
-
-
doGet(HttpServletRequest, HttpServletResponse)
- this does it .
-
getCustomerTag(String)
- Function that returns the customer tag associated with an emailid of the
customer whose information is present in the database .
-
init(ServletConfig)
-
-
isInfoPresent(String)
- Function that checks whether any information is present in the database
corresponding to the customer with a given emailid .
-
splitarrange(String)
-
Function that takes a tuple from the prioritytuples String array above and form
a part of query statement with the tablename , fieldname and fieldvalue
PriorityManager
public PriorityManager()
init
public void init(ServletConfig config) throws ServletException
- Overrides:
- init in class GenericServlet
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
- this does it .
- Overrides:
- doGet in class HttpServlet
splitarrange
public String splitarrange(String prioritytuples)
- Function that takes a tuple from the prioritytuples String array above and form
a part of query statement with the tablename , fieldname and fieldvalue
- Parameters:
- String - prioritytuples[i] -
- Returns:
- String partofquery - arranged form
getCustomerTag
public String getCustomerTag(String emailid)
- Function that returns the customer tag associated with an emailid of the
customer whose information is present in the database .
- Parameters:
- String - emailid - takes the emailid of a customer email
- Returns:
- String customertag - the customer tag
isInfoPresent
public boolean isInfoPresent(String emailid)
- Function that checks whether any information is present in the database
corresponding to the customer with a given emailid .
- Parameters:
- String - emailid - emailid of a customer service request email
- Returns:
- boolean result - result