Interface RqJson

  • All Superinterfaces:
    org.takes.Body, org.takes.Head, org.takes.Request
    All Known Implementing Classes:
    RqJsonBase

    public interface RqJson
    extends org.takes.Request
    Request decorator that decodes JSON data from application/json format (RFC 1738).

    It is highly recommended to use RqGreedy decorator before passing request to this class.

    The class is immutable and thread-safe.

    Since:
    0.9
    Version:
    $Id: cc33fbc2754cc24ab18b1fc55858f9d9082eb8bf $
    Author:
    Olivier B. OURA (baudolivier7@gmail.com)
    See Also:
    Forms in HTML, RqGreedy
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.json.JsonStructure payload()
      Get request payload.
      • Methods inherited from interface org.takes.Body

        body
      • Methods inherited from interface org.takes.Head

        head
    • Method Detail

      • payload

        javax.json.JsonStructure payload()
                                  throws IOException
        Get request payload.
        Returns:
        JsonStructure
        Throws:
        IOException - if no json format