railo.commons.net.http.httpclient4
Class ResourceBody
java.lang.Object
org.apache.http.entity.mime.content.AbstractContentBody
railo.commons.net.http.httpclient4.ResourceBody
- All Implemented Interfaces:
- org.apache.http.entity.mime.content.ContentBody, org.apache.http.entity.mime.content.ContentDescriptor
public class ResourceBody
- extends org.apache.http.entity.mime.content.AbstractContentBody
Methods inherited from class org.apache.http.entity.mime.content.AbstractContentBody |
getMediaType, getMimeType, getSubType |
DEFAULT_MIMETYPE
public static final String DEFAULT_MIMETYPE
- See Also:
- Constant Field Values
ResourceBody
public ResourceBody(Resource res,
String mimetype,
String fileName,
String charset)
throws FileNotFoundException
- Throws:
FileNotFoundException
getFilename
public String getFilename()
writeTo
public void writeTo(OutputStream os)
throws IOException
- Throws:
IOException
getCharset
public String getCharset()
getContentLength
public long getContentLength()
getTransferEncoding
public String getTransferEncoding()
getResource
public Resource getResource()
- Returns:
- the res
Copyright © 2012 Railo