Index | Special Tags | Predefined Tags | Implementation | Home |
Changes and News of PReP
| |
There are two new classes, PRePHandler and PRePServlet. The PRePServlet class takes over the functionality which the InputServlet class used to have. New is also the Config file which handles the security. There are changes in the InputServlet class, which is now only a subclass of PRePServlet with no own features. There are also slightly changes of PRePMain class and in PReP class changed the whole argument handling. |
|
Structure of PRePServlet
| |
First of all the init() method of the PRePServlet will be called from the servletrunner. There a new PRePHandler (providePRePHandler()) will be created as well as the ConnectionPool initialised (default values). As soon as a request from the servletrunner arrives, the handle() method of the PRePServlet is called. This method handles the request and does everything from setting the PrintWriter to the login and finally output of the PRePFile. It is build out of different methods which all work over the PRePHandler. The PRePHandler is unique - unlike the PRePMain which is given to the PRePServlet at the beginning. It will be deleted after the handle() method finished. If the servletrunner closes, it calls the destroy() method of the PRePServlet class which itself calls the destroy() method of the PRePHandler class. The ConnectionPool will be destroyed and its connection closed one for one. |
|
|
Class information about PRePServlet |
Structure of PRePHandler
| |
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.
![]() |
|
|
Class information about PRePHandler |
Structure of InputServlet
| |
The InputServlet is only a subclass of PRePServlet with no other features. It exists just because we have some .prep files we use and we have not yet changed them. |
|
Structure of PReP
| |
The PReP class reads arguments from the commandline which are either tags and values or input files and an output file and stores them into a TagList, compiles it and outputs the result in the PrintWriter. It contains the main method. The argument handling of PReP changed a lot. A argument handler is imported and used. |
|
|
Class information about PReP
Special tags |