Class TestHttpResponse.TestHttpEntity

  • All Implemented Interfaces:
    org.apache.http.HttpEntity
    Enclosing class:
    TestHttpResponse

    public class TestHttpResponse.TestHttpEntity
    extends HttpEntityStub
    • Constructor Detail

      • TestHttpEntity

        public TestHttpEntity()
    • Method Detail

      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface org.apache.http.HttpEntity
        Overrides:
        getContentLength in class HttpEntityStub
      • getContentType

        public org.apache.http.Header getContentType()
        Specified by:
        getContentType in interface org.apache.http.HttpEntity
        Overrides:
        getContentType in class HttpEntityStub
      • getContentEncoding

        public org.apache.http.Header getContentEncoding()
        Specified by:
        getContentEncoding in interface org.apache.http.HttpEntity
        Overrides:
        getContentEncoding in class HttpEntityStub
      • isStreaming

        public boolean isStreaming()
        Specified by:
        isStreaming in interface org.apache.http.HttpEntity
        Overrides:
        isStreaming in class HttpEntityStub
      • isRepeatable

        public boolean isRepeatable()
        Specified by:
        isRepeatable in interface org.apache.http.HttpEntity
        Overrides:
        isRepeatable in class HttpEntityStub
      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException,
                                              java.lang.IllegalStateException
        Specified by:
        getContent in interface org.apache.http.HttpEntity
        Overrides:
        getContent in class HttpEntityStub
        Throws:
        java.io.IOException
        java.lang.IllegalStateException
      • writeTo

        public void writeTo​(java.io.OutputStream outputStream)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.apache.http.HttpEntity
        Overrides:
        writeTo in class HttpEntityStub
        Throws:
        java.io.IOException
      • consumeContent

        public void consumeContent()
                            throws java.io.IOException
        Specified by:
        consumeContent in interface org.apache.http.HttpEntity
        Overrides:
        consumeContent in class HttpEntityStub
        Throws:
        java.io.IOException