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, service
public Properties getJobs() throws NamingException
NamingException
public 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.Servlet
init
in class javax.servlet.GenericServlet
config
- the configuration information for this servlet.javax.servlet.ServletException
public 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.HttpServlet
IOException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2015 Patrodyne. All Rights Reserved.