railo.commons.net.http.httpclient4
Class ResourceBody

java.lang.Object
  extended by org.apache.http.entity.mime.content.AbstractContentBody
      extended by 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


Field Summary
static String DEFAULT_MIMETYPE
           
 
Constructor Summary
ResourceBody(Resource res, String mimetype, String fileName, String charset)
           
 
Method Summary
 String getCharset()
           
 long getContentLength()
           
 String getFilename()
           
 Resource getResource()
           
 String getTransferEncoding()
           
 void writeTo(OutputStream os)
           
 
Methods inherited from class org.apache.http.entity.mime.content.AbstractContentBody
getMediaType, getMimeType, getSubType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MIMETYPE

public static final String DEFAULT_MIMETYPE
See Also:
Constant Field Values
Constructor Detail

ResourceBody

public ResourceBody(Resource res,
                    String mimetype,
                    String fileName,
                    String charset)
             throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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