Interface HttpBody

All Known Subinterfaces:
MultiObjectBody
All Known Implementing Classes:
FormRouteCompleter, ImmediateMultiObjectBody, ImmediateSingleObjectBody, StreamingMultiObjectBody

@Internal public interface HttpBody

Base type for a representation of an HTTP request body.

Exactly one HttpBody holds control over a request body at a time. When a transformation of the body is performed, e.g. multipart processing, the new HttpBody takes control and the old one becomes invalid. The new body will be available via next().

Since:
4.0.0
Author:
Jonas Konrad
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the next representation this body was transformed into, if any.
    void
    Release this body and any downstream representations.
  • Method Details

    • release

      void release()
      Release this body and any downstream representations.
    • next

      Get the next representation this body was transformed into, if any.
      Returns:
      The next representation, or null if this body has not been transformed