Interface ParsedBodyHolder<B>

Type Parameters:
B - The type of the body
All Known Implementing Classes:
DefaultServletHttpRequest

public interface ParsedBodyHolder<B>
Interface to allow setting of parsed body on a request. When we parse the body of a request using ServletBodyBinder we read the body via the inputStream. Further requests to getBody (for example in an OnError handler) will then return an empty object as the stream is exhausted. This allows us to effectively cache the body, so we get the same object in the later handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set the parsed body.
  • Method Details

    • setParsedBody

      void setParsedBody(B body)
      Set the parsed body.
      Parameters:
      body - the parsed body