Class BodyContent


  • public class BodyContent
    extends Object
    Content of request or response body used for adapting to beans.

    This is not used for streaming content.

    • Constructor Detail

      • BodyContent

        public BodyContent​(String contentType,
                           byte[] content)
        Create with content type and content.
    • Method Detail

      • asJson

        public static BodyContent asJson​(byte[] content)
        Create and return as JSON body content given raw content.
      • contentType

        public String contentType()
        Return the content type.
      • content

        public byte[] content()
        Return the raw content.