Class JsonBody

java.lang.Object
com.predic8.membrane.core.openapi.model.JsonBody
All Implemented Interfaces:
Body

public class JsonBody extends Object implements Body
  • Constructor Details

    • JsonBody

      public JsonBody(com.fasterxml.jackson.databind.JsonNode s)
    • JsonBody

      public JsonBody(String s) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
  • Method Details

    • getPayload

      public com.fasterxml.jackson.databind.JsonNode getPayload()
    • asString

      public String asString()
      Specified by:
      asString in interface Body
    • getJson

      public com.fasterxml.jackson.databind.JsonNode getJson() throws IOException
      Specified by:
      getJson in interface Body
      Throws:
      IOException