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
-
public class EchoTask extends PostBodyTask
-
-
Constructor Summary
Constructors Constructor Description EchoTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Map<String,List<String>> parameters, String body, PrintWriter output)
-
Methods inherited from class io.dropwizard.servlets.tasks.PostBodyTask
execute
-
Methods inherited from class io.dropwizard.servlets.tasks.Task
getName, getResponseContentType
-
-
-
-
Method Detail
-
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
-
-