railo.commons.net.http.httpclient4.entity
Class ResourceHttpEntity
java.lang.Object
org.apache.http.entity.AbstractHttpEntity
railo.commons.net.http.httpclient4.entity.ResourceHttpEntity
- All Implemented Interfaces:
- org.apache.http.HttpEntity, Entity, Entity4
public class ResourceHttpEntity
- extends org.apache.http.entity.AbstractHttpEntity
- implements Entity4
A RequestEntity that represents a Resource.
Methods inherited from class org.apache.http.entity.AbstractHttpEntity |
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType |
Methods inherited from interface org.apache.http.HttpEntity |
consumeContent, getContentEncoding, getContentType, isChunked |
ResourceHttpEntity
public ResourceHttpEntity(Resource res,
String contentType)
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface org.apache.http.HttpEntity
isRepeatable
public boolean isRepeatable()
- Specified by:
isRepeatable
in interface org.apache.http.HttpEntity
getContent
public InputStream getContent()
throws IOException
- Specified by:
getContent
in interface org.apache.http.HttpEntity
- Throws:
IOException
writeTo
public void writeTo(OutputStream out)
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
contentLength
public long contentLength()
- Specified by:
contentLength
in interface Entity
contentType
public String contentType()
- Specified by:
contentType
in interface Entity
Copyright © 2012 Railo