Class PostBodyTask

java.lang.Object
io.dropwizard.servlets.tasks.Task
io.dropwizard.servlets.tasks.PostBodyTask
Direct Known Subclasses:
EchoTask

public abstract class PostBodyTask extends Task
A task which can be performed via the admin interface and provides the post body of the request.
See Also:
  • Constructor Details

    • PostBodyTask

      protected PostBodyTask(String name)
      Create a new task with the given name.
      Parameters:
      name - the task's name
    • PostBodyTask

      protected PostBodyTask(String name, String responseContentType)
      Create a new task with the given name and response content type
      Parameters:
      name - the task's name
      responseContentType - the task's response content type
      Since:
      2.0
  • Method Details