Interface Body

All Known Implementing Classes:
ByteArrayBody, InputStreamBody, StringBody

public interface Body
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.fasterxml.jackson.databind.JsonNode
     
    toString(Charset encoding)
     
  • Method Details

    • hasBody

      boolean hasBody()
      Returns:
      true if the bodies content contains at least one sign, otherwise false
    • toJsonNode

      com.fasterxml.jackson.databind.JsonNode toJsonNode() throws IOException
      Returns:
      the bodies content as JsonNode
      Throws:
      IOException - in case the transformation fails
    • toString

      String toString(Charset encoding) throws IOException
      Parameters:
      encoding - the Charset the bodies content shall be converted to
      Returns:
      the bodies content as String converted with the specified encoding
      Throws:
      IOException - in case the conversion fails