| javax.servlet.http.HttpServlet org.jaffa.config.InitApp
InitApp | public class InitApp extends HttpServlet (Code) | | This servlet is called by web.xml as part of the startup process.
It is used to initialize the Logging API and to also get a handle on
the base diretory that the web application is deployed in. This can be used as
a reference point for locating resources relative to the deployment of the web app.
The following optional parameters can be passed to this servlet:
framework.ApplicationResourcesLocation - The physical path of where the ApplicationResources.properties is.
Example Absolute location : "C:\tomcat\webapps\Tools\WEB-INF\classes\resources\ApplicationResources.properties"
Example Relative to classpath : "resources/ApplicationResources.properties"
NOTE: This value will have to be provided to the Struts ActionServlet as well in web.xml or struts-config.xml
framework.ApplicationResourcesDefaultLocation - The physical path of where the ApplicationResources.default is.
Example Absolute location : "C:\tomcat\webapps\Tools\WEB-INF\classes\resources\ApplicationResources.default"
Example Relative to classpath : "resources/ApplicationResources.default"
framework.ApplicationResourcesOverrideLocation - The physical path of where the ApplicationResources.override is.
Example "C:/ApplicationResources.override"
Example Relative to classpath : "resources/ApplicationResources.override"
NOTE: It is recommended that this file will outside the webapp, so that it is not overwritten during product upgrades.
If the values are provided for the above parameters, this servlet will combine the ApplicationResources.default and ApplicationResources.override files to generate the ApplicationResources.properties file.
Additionally, the servlet will set the appropriate dynamic properties in the org.jaffa.config.Config class.
These parameters control the working of the 'Jaffa.Admin.LabelEditor' component.
|
Method Summary | |
public void | destroy() This is invoked by the servlet container when the servlet is destroyed. | public static void | generateApplicationResources() Combines the ApplicationResources.default and ApplicationResources.override files into the ApplicationResources.properties file. | public void | init(ServletConfig cfg) This is invoked by the servlet container when the servlet is first loaded. |
destroy | public void destroy()(Code) | | This is invoked by the servlet container when the servlet is destroyed.
It clears up the settings related to the logging API.
It then invokes the destroy method of the super class.
|
generateApplicationResources | public static void generateApplicationResources() throws IOException(Code) | | Combines the ApplicationResources.default and ApplicationResources.override files into the ApplicationResources.properties file.
The locations for the files are obtained from the dynamic properties set in the Config class.
If the locations are not set, then nothing will be done.
throws: IOException - if any I/O error occurs. |
init | public void init(ServletConfig cfg) throws ServletException(Code) | | This is invoked by the servlet container when the servlet is first loaded.
It first invokes the init method of the super class.
It then initialises the logging API and gets a handle on the webapp which invoked this servlet.
Parameters: cfg - the Servlet configuration passed by the container. throws: ServletException - if any error occurs. |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|