Class RequestEntityProxy

java.lang.Object
org.apache.http.impl.execchain.RequestEntityProxy
All Implemented Interfaces:
org.apache.http.HttpEntity

class RequestEntityProxy extends Object implements org.apache.http.HttpEntity
A Proxy class for HttpEntity enclosed in a request message.
Since:
4.3
  • Field Details

    • original

      private final org.apache.http.HttpEntity original
    • consumed

      private boolean consumed
  • Constructor Details

    • RequestEntityProxy

      RequestEntityProxy(org.apache.http.HttpEntity original)
  • Method Details

    • enhance

      static void enhance(org.apache.http.HttpEntityEnclosingRequest request)
    • isEnhanced

      static boolean isEnhanced(org.apache.http.HttpEntity entity)
    • isRepeatable

      static boolean isRepeatable(org.apache.http.HttpRequest request)
    • getOriginal

      public org.apache.http.HttpEntity getOriginal()
    • isConsumed

      public boolean isConsumed()
    • isRepeatable

      public boolean isRepeatable()
      Specified by:
      isRepeatable in interface org.apache.http.HttpEntity
    • isChunked

      public boolean isChunked()
      Specified by:
      isChunked in interface org.apache.http.HttpEntity
    • getContentLength

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

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

      public org.apache.http.Header getContentEncoding()
      Specified by:
      getContentEncoding in interface org.apache.http.HttpEntity
    • getContent

      public InputStream getContent() throws IOException, IllegalStateException
      Specified by:
      getContent in interface org.apache.http.HttpEntity
      Throws:
      IOException
      IllegalStateException
    • writeTo

      public void writeTo(OutputStream outStream) throws IOException
      Specified by:
      writeTo in interface org.apache.http.HttpEntity
      Throws:
      IOException
    • isStreaming

      public boolean isStreaming()
      Specified by:
      isStreaming in interface org.apache.http.HttpEntity
    • consumeContent

      public void consumeContent() throws IOException
      Specified by:
      consumeContent in interface org.apache.http.HttpEntity
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object