|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.jspsurveymanager.WebApp
public class WebApp
Library class of utility methods for web applications, mostly for use inside the jsp files. (Soon it will be only for use inside the jsp files. Developed by Peter Centgraf as final project for the CMU 15-397: Web Application Development course, Spring 2004.
Constructor Summary | |
---|---|
WebApp()
|
|
WebApp(DatabaseObjectStorage objectStorage)
|
Method Summary | |
---|---|
static java.lang.String |
cleanString(java.lang.String s)
Makes a string safe for usage in HTML and/or SQL. |
static java.lang.String |
cleanString(java.lang.String s,
java.util.regex.Pattern badCharPattern)
Makes a string safe for usage in HTML and/or SQL. |
Admin[] |
getAdmins()
Gets an array of all Admins. |
java.util.Vector<Survey> |
getSurveys()
Gets an array of all Surveys. |
void |
kill()
Closes the database connection to free resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebApp()
public WebApp(DatabaseObjectStorage objectStorage)
Method Detail |
---|
public static java.lang.String cleanString(java.lang.String s)
public static java.lang.String cleanString(java.lang.String s, java.util.regex.Pattern badCharPattern)
public void kill()
public Admin[] getAdmins()
public java.util.Vector<Survey> getSurveys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |