public class ResourceHttpEntity extends org.apache.http.entity.AbstractHttpEntity implements Entity4
Constructor and Description |
---|
ResourceHttpEntity(Resource res,
String contentType) |
Modifier and Type | Method and Description |
---|---|
long |
contentLength() |
String |
contentType() |
InputStream |
getContent() |
long |
getContentLength() |
boolean |
isRepeatable() |
boolean |
isStreaming() |
void |
writeTo(OutputStream out) |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public ResourceHttpEntity(Resource res, String contentType)
public long getContentLength()
getContentLength
in interface org.apache.http.HttpEntity
public boolean isRepeatable()
isRepeatable
in interface org.apache.http.HttpEntity
public InputStream getContent() throws IOException
getContent
in interface org.apache.http.HttpEntity
IOException
public void writeTo(OutputStream out) throws IOException
writeTo
in interface org.apache.http.HttpEntity
IOException
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