railo.commons.net.http.httpclient3
Class ResourcePart

java.lang.Object
  extended by org.apache.commons.httpclient.methods.multipart.Part
      extended by org.apache.commons.httpclient.methods.multipart.PartBase
          extended by org.apache.commons.httpclient.methods.multipart.FilePart
              extended by railo.commons.net.http.httpclient3.ResourcePart

public class ResourcePart
extends org.apache.commons.httpclient.methods.multipart.FilePart


Field Summary
 
Fields inherited from class org.apache.commons.httpclient.methods.multipart.FilePart
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING
 
Constructor Summary
ResourcePart(String name, ResourcePartSource partSource, String contentType, String headerCharset)
           
 
Method Summary
 String getCharSet()
           
 Resource getResource()
           
static void sendDispositionHeader(String name, String filename, String headerCharset, OutputStream out)
           
 
Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncoding
 
Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, isRepeatable, length, send, sendParts, sendParts, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePart

public ResourcePart(String name,
                    ResourcePartSource partSource,
                    String contentType,
                    String headerCharset)
Method Detail

getResource

public Resource getResource()
Returns:
the resource

getCharSet

public String getCharSet()
Overrides:
getCharSet in class org.apache.commons.httpclient.methods.multipart.PartBase

sendDispositionHeader

public static void sendDispositionHeader(String name,
                                         String filename,
                                         String headerCharset,
                                         OutputStream out)
                                  throws IOException
Throws:
IOException


Copyright © 2012 Railo