The PRePHandler class is a helper class which allows to deal between the Servlet and the PRePMain class as well
as between a commandline version of PReP and the PRePMain - without having any knowledge of JSDK. It configurates
the data coming from the servlet or commandline version of PReP.
Constructor:
default constructor
Methods:
setDatabaseConnection()
Creates a new ConnectionPool and initialises it with the default values
setDatabaseConnection(String JDBCDriver, String URL, String UID, String PWD)
Creates a new ConnectionPool and initialises it with the given values.
setDatabaseConnection(String JDBCDriver, String URL, String UID, String PWD, int iConnections)
Creates a new ConnectionPool and initialises it with the given values. You will get as many connections
as you specified in iConnections.
getPRePMain()
returns a new PRePMain object
setPrintWriter(PRePMain, PrintWriter)
calls the setPrintWriter() method of the specified PRePMain object
putPRePTags(PRePMain)
calls the putField() for each predefined PRePTag, specified in this method
putField(PRePMain, String strName, String strValue)
calls the putField() method of PRePMain
putField(PRePMain, PRePTag)
calls the putField() method of PRePMain
getNewCookies(PRePMain)
if there are cookies to set on the HttpServletResponse, call them here (like the UINFO cookie, checkUser() in DOCHandler!)
loginOk(PRePMain)
if checkCookie returned true, this method invokes. It manages the filehandling and returns nothing.
loginNotOk(PRePMain)
if checkCookie returned false, this method invokes. It manages also the filehandling and returns nothing.
finishHandle(PRePMain)
calls the output() method of PRePMain and deletes the PRePMain after that.
putFile(File file)
calls the putFile() method of PRePMain
destroy()
calls the destroy() method of the ConnectionPool which will close every connection