public class TaskServlet
extends javax.servlet.http.HttpServlet
Tasks. It only responds to POST
requests, since most Tasks aren't side-effect free, and passes along the query string
parameters of the request to the task as a multimap.Task,
Serialized Form| Constructor and Description |
|---|
TaskServlet(com.codahale.metrics.MetricRegistry metricRegistry)
Creates a new TaskServlet.
|
TaskServlet(com.codahale.metrics.MetricRegistry metricRegistry,
TaskConfiguration taskConfiguration)
Creates a new TaskServlet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Task task) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
Collection<Task> |
getTasks() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic TaskServlet(com.codahale.metrics.MetricRegistry metricRegistry)
public TaskServlet(com.codahale.metrics.MetricRegistry metricRegistry,
TaskConfiguration taskConfiguration)
public void add(Task task)
protected void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionpublic Collection<Task> getTasks()
Copyright © 2023. All rights reserved.