public abstract class Task extends Object
TaskServlet| Modifier | Constructor and Description |
|---|---|
protected |
Task(String name)
Create a new task with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
execute(com.google.common.collect.ImmutableMultimap<String,String> parameters,
PrintWriter output)
Executes the task.
|
String |
getName()
Returns the task's name,
|
protected Task(String name)
name - the task's namepublic String getName()
public abstract void execute(com.google.common.collect.ImmutableMultimap<String,String> parameters, PrintWriter output) throws Exception
parameters - the query string parametersoutput - a PrintWriter wrapping the output stream of the taskException - if something goes wrongCopyright © 2016. All rights reserved.