Run the application initialisation WAD section.
The servlet then waits for incoming requests which is serves via the Weaver application built in the initialisation phase.
- Author:
- Paul Harvey
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.http.HttpServlet |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_DIR_PREFIX
public static final String CONFIG_DIR_PREFIX
- See Also:
- Constant Field Values
CONFIG_DIR_SUFFIX
public static final String CONFIG_DIR_SUFFIX
- See Also:
- Constant Field Values
CONFIG_FILE_NAME
public static final String CONFIG_FILE_NAME
- See Also:
- Constant Field Values
WAD_FILE_NAME
public static final String WAD_FILE_NAME
- See Also:
- Constant Field Values
CONFIG_PARAM_DO_RELOADS
public static final String CONFIG_PARAM_DO_RELOADS
- See Also:
- Constant Field Values
l
private Logger l
properties
private Properties properties
application
private WeaverApplication application
servletContext
private WeaverServletContextImpl servletContext
lastLoaded
private long lastLoaded
firstInit
private boolean firstInit
reloadThread
private Thread reloadThread
reloadThreadStopping
private boolean reloadThreadStopping
wadFile
private String wadFile
iniFile
private String iniFile
initOK
private boolean initOK
notOKReason
private Exception notOKReason
doReloads
private boolean doReloads
uploadDir
private String uploadDir
IIW_PARAM
private static final String IIW_PARAM
- See Also:
- Constant Field Values
IIW_PARAM_VALUE
private static final String IIW_PARAM_VALUE
- See Also:
- Constant Field Values
WeaverApplicationServlet
public WeaverApplicationServlet()
getServletInfo
public String getServletInfo()
doGet
public void doGet(HttpServletRequest the_request,
HttpServletResponse the_response)
throws ServletException
- Called by the servlet engine to handle a HTTP get.
- Parameters:
the_request
- The request object.the_response
- The response object.
- Throws:
ServletException
doPost
public void doPost(HttpServletRequest the_request,
HttpServletResponse the_response)
throws ServletException
- Called by the servlet engine to handle a HTTP post
- Parameters:
the_request
- The request object.the_response
- The response object.
- Throws:
ServletException
init
public void init()
throws ServletException
- Called once by the servlet engine to initialise the servlet.
init attempts to read configuration information from the servlet itself,
from a conf file (windows INI style) indicated in the servlet configuration
and then from the database as indicated either in the servlet properties or
conf file.
It then creates a Weaver object based on the read configuration - most
importantly a Weaver application definition file.
Finally the application initialisation bean are executed.
- Throws:
ServletException
clientInit
protected void clientInit()
throws WeaverException
- Throws:
WeaverException
sayItsWeaver
private void sayItsWeaver(HttpServletResponse response)
throws IOException
- Throws:
IOException
checkReload
private void checkReload()
throws ServletException
- Throws:
ServletException
reportInitFailure
private void reportInitFailure(HttpServletResponse theResponse)
doGetPost
private void doGetPost(HttpServletRequest theRequest,
HttpServletResponse theResponse)
throws ServletException
- Throws:
ServletException
destroy
public void destroy()
- Called by the serlvet engine to destroy the servlet.