railo.commons.net
Class ResourcePart
java.lang.Object
org.apache.commons.httpclient.methods.multipart.Part
org.apache.commons.httpclient.methods.multipart.PartBase
org.apache.commons.httpclient.methods.multipart.FilePart
railo.commons.net.ResourcePart
public class ResourcePart
- extends org.apache.commons.httpclient.methods.multipart.FilePart
Fields inherited from class org.apache.commons.httpclient.methods.multipart.FilePart |
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING |
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 |
ResourcePart
public ResourcePart(String name,
ResourcePartSource partSource,
String contentType,
String headerCharset)
getResource
public Resource getResource()
- Returns:
- the resource
getCharSet
public String getCharSet()
- Overrides:
getCharSet
in class org.apache.commons.httpclient.methods.multipart.PartBase
- See Also:
PartBase.getCharSet()
sendDispositionHeader
public static void sendDispositionHeader(String name,
String filename,
String headerCharset,
OutputStream out)
throws IOException
- Throws:
IOException
Copyright © 2012 Railo