Class JsonHttpEntity

  • All Implemented Interfaces:
    org.apache.http.HttpEntity

    public class JsonHttpEntity
    extends org.apache.http.entity.AbstractHttpEntity
    • Constructor Detail

      • JsonHttpEntity

        public JsonHttpEntity​(Object obj)
                       throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
    • Method Detail

      • entity

        public static JsonHttpEntity entity​(Object obj)
                                     throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • isRepeatable

        public boolean isRepeatable()
      • getContentLength

        public long getContentLength()
      • getContentType

        public org.apache.http.Header getContentType()
        Specified by:
        getContentType in interface org.apache.http.HttpEntity
        Overrides:
        getContentType in class org.apache.http.entity.AbstractHttpEntity
      • isChunked

        public boolean isChunked()
        Specified by:
        isChunked in interface org.apache.http.HttpEntity
        Overrides:
        isChunked in class org.apache.http.entity.AbstractHttpEntity
      • isStreaming

        public boolean isStreaming()