public class HttpTaskServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
HttpTaskServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called by the servlet container to indicate to a servlet that the
servlet is being taken out of service.
|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called by the server (via the
service method) to
allow a servlet to handle a GET request. |
Properties |
getJobs()
Get the task properties.
|
List<HttpTask> |
getTasks()
Get the list of HTTP tasks.
|
Timer |
getTimer()
Get a facility to schedule jobs.
|
void |
init(javax.servlet.ServletConfig config)
Called by the servlet container to indicate to a servlet that the
servlet is being placed into service.
|
int |
nextTaskIndex()
Next circular task taskIndex.
|
void |
setJobs(Properties jobs)
Set the task properties.
|
void |
setTasks(List<HttpTask> tasks)
Set the list of HTTP tasks.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic Properties getJobs() throws NamingException
NamingExceptionpublic void setJobs(Properties jobs)
jobs - the jobs to setpublic Timer getTimer()
public void setTasks(List<HttpTask> tasks)
tasks - the HTTP tasks to setpublic int nextTaskIndex()
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
Servlet.init(javax.servlet.ServletConfig).
This implementation schedules jobs configured in JNDI.init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletconfig - the configuration information for this servlet.javax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
service method) to
allow a servlet to handle a GET request.doGet in class javax.servlet.http.HttpServletIOExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletCopyright © 2015 Patrodyne. All Rights Reserved.