Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.websody
Class InitServlet  view InitServlet download InitServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byorg.websody.InitServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class InitServlet
extends javax.servlet.GenericServlet

Load-On-Startup-Servlet that initializes the websody.


Field Summary
(package private)  org.apache.log4j.Category log
           
private static org.websody.util.URI tempDirURI
           
private static java.lang.String version
           
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
InitServlet()
           
 
Method Summary
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
static org.websody.util.URI getTempDirURI()
           
static java.lang.String getVersion()
           
 void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
private  void initLog4j()
           
private  void initPortletCache()
           
private  void initTempDir()
           
private  void initVersionInfo()
           
 void service(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Called by the servlet container to allow the servlet to respond to a request.
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

org.apache.log4j.Category log

version

private static java.lang.String version

tempDirURI

private static org.websody.util.URI tempDirURI
Constructor Detail

InitServlet

public InitServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Description copied from class: javax.servlet.GenericServlet
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding GenericServlet.init(ServletConfig)>GenericServlet.init(ServletConfig) 55 , simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via GenericServlet.getServletConfig()>GenericServlet.getServletConfig() 55 .


getVersion

public static java.lang.String getVersion()

getTempDirURI

public static org.websody.util.URI getTempDirURI()

initLog4j

private void initLog4j()

initVersionInfo

private void initVersionInfo()
                      throws java.io.IOException

initTempDir

private void initTempDir()

initPortletCache

private void initPortletCache()

destroy

public void destroy()
Description copied from class: javax.servlet.GenericServlet
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. See Servlet.destroy()>Servlet.destroy() 55 .


service

public void service(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.ServletException
Description copied from class: javax.servlet.GenericServlet
Called by the servlet container to allow the servlet to respond to a request. See Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)>Servlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) 55 .

This method is declared abstract so subclasses, such as HttpServlet, must override it.