public class TaskServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
TaskServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
getServletInfo() |
static String[] |
getTaskNames(ObjectFactory<Task> taskFactory,
String taskList)
Returns an array of the known tasks from a given task factory
based on a space-separated list.
|
void |
init(javax.servlet.ServletConfig config) |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Does the work for a GET or POST request - they have the same behaviour.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public String getServletInfo()
getServletInfo
in interface javax.servlet.Servlet
getServletInfo
in class javax.servlet.GenericServlet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
request
- requestresponse
- responseIOException
javax.servlet.ServletException
public static String[] getTaskNames(ObjectFactory<Task> taskFactory, String taskList)
taskList
- space-separated list of tasks to includetaskFactory
- STILTS task factoryIllegalArgumentException
- if any unknown task name
is included in taskList
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.