public class OutputStreamHttpEntity extends Object implements org.apache.http.HttpEntity
| Constructor and Description |
|---|
OutputStreamHttpEntity(SolrElementAdd add,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent() |
InputStream |
getContent() |
org.apache.http.Header |
getContentEncoding()
Content-Type: text/xml; charset=
|
long |
getContentLength()
Content length is unknown always returns -1
|
org.apache.http.Header |
getContentType()
Default ContentType is UTF-8
|
boolean |
isChunked() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
setContentType(org.apache.http.Header contentType) |
void |
writeTo(OutputStream outputStream) |
public OutputStreamHttpEntity(SolrElementAdd add, String encoding)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic InputStream getContent() throws IOException, IllegalStateException
getContent in interface org.apache.http.HttpEntityIOExceptionIllegalStateExceptionpublic void writeTo(OutputStream outputStream) throws IOException
writeTo in interface org.apache.http.HttpEntityIOExceptionpublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic void consumeContent()
throws IOException
consumeContent in interface org.apache.http.HttpEntityIOExceptionpublic void setContentType(org.apache.http.Header contentType)
Copyright © 2022. All rights reserved.