public static class ApacheHttpBuilder.ApacheToServer extends java.lang.Object implements ToServer, org.apache.http.HttpEntity
Constructor and Description |
---|
ApacheToServer(ChainedHttpConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
consumeContent() |
java.io.InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding() |
long |
getContentLength() |
org.apache.http.Header |
getContentType() |
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
toServer(java.io.InputStream inputStream)
Translates the request content appropriately for the underlying client implementation.
|
void |
writeTo(java.io.OutputStream outputStream) |
public ApacheToServer(ChainedHttpConfig config)
public void toServer(java.io.InputStream inputStream)
ToServer
Translates the request content appropriately for the underlying client implementation. The contentType will be determined by the request.
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public boolean isChunked()
isChunked
in interface org.apache.http.HttpEntity
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentType()
getContentType
in interface org.apache.http.HttpEntity
public org.apache.http.Header getContentEncoding()
getContentEncoding
in interface org.apache.http.HttpEntity
public java.io.InputStream getContent()
getContent
in interface org.apache.http.HttpEntity
public void writeTo(java.io.OutputStream outputStream)
writeTo
in interface org.apache.http.HttpEntity
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public void consumeContent() throws java.io.IOException
consumeContent
in interface org.apache.http.HttpEntity
java.io.IOException