Package com.example.helloworld.tasks
Class EchoTask
java.lang.Object
io.dropwizard.servlets.tasks.Task
io.dropwizard.servlets.tasks.PostBodyTask
com.example.helloworld.tasks.EchoTask
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.dropwizard.servlets.tasks.PostBodyTask
execute
Methods inherited from class io.dropwizard.servlets.tasks.Task
getName, getResponseContentType
-
Constructor Details
-
EchoTask
public EchoTask()
-
-
Method Details
-
execute
public void execute(Map<String, List<String>> parameters, String body, PrintWriter output) throws Exception- Specified by:
execute
in classPostBodyTask
- Parameters:
parameters
- the query string parametersbody
- the plain text request bodyoutput
- aPrintWriter
wrapping the output stream of the task- Throws:
Exception
-