public class TemporaryStreamHttpEntity extends org.apache.http.entity.AbstractHttpEntity implements Entity4
Constructor and Description |
---|
TemporaryStreamHttpEntity(TemporaryStream ts,
String contentType) |
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
String |
contentType() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream os) |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public TemporaryStreamHttpEntity(TemporaryStream ts, String contentType)
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public void writeTo(OutputStream os) throws IOException
writeTo
in interface org.apache.http.HttpEntity
IOException
public InputStream getContent() throws IOException, IllegalStateException
getContent
in interface org.apache.http.HttpEntity
IOException
IllegalStateException
public boolean isStreaming()
isStreaming
in interface org.apache.http.HttpEntity
public long contentLength()
contentLength
in interface Entity
public String contentType()
contentType
in interface Entity
Copyright © 2015 Lucee