public abstract class PostBodyTask extends Task
Task
,
TaskServlet
Modifier | Constructor and Description |
---|---|
protected |
PostBodyTask(String name)
Create a new task with the given name.
|
protected |
PostBodyTask(String name,
String responseContentType)
Create a new task with the given name and response content type
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Map<String,List<String>> parameters,
PrintWriter output)
Deprecated.
Use
execute(Map, String, PrintWriter) or inherit from Task instead. |
abstract void |
execute(Map<String,List<String>> parameters,
String body,
PrintWriter output) |
getName, getResponseContentType
protected PostBodyTask(String name)
name
- the task's namepublic abstract void execute(Map<String,List<String>> parameters, String body, PrintWriter output) throws Exception
parameters
- the query string parametersbody
- the plain text request bodyoutput
- a PrintWriter
wrapping the output stream of the taskException
@Deprecated public void execute(Map<String,List<String>> parameters, PrintWriter output) throws Exception
execute(Map, String, PrintWriter)
or inherit from Task instead.execute(Map, String, PrintWriter)
or inherit from Task instead.execute
in class Task
parameters
- the query string parametersoutput
- a PrintWriter
wrapping the output stream of the taskException
Copyright © 2011. All rights reserved.