Class FileLikePart
- java.lang.Object
-
- org.asynchttpclient.request.body.multipart.PartBase
-
- org.asynchttpclient.request.body.multipart.FileLikePart
-
- All Implemented Interfaces:
Part
- Direct Known Subclasses:
ByteArrayPart,FilePart,InputStreamPart
public abstract class FileLikePart extends PartBase
This class is an adaptation of the Apache HttpClient implementation
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()StringtoString()-
Methods inherited from class org.asynchttpclient.request.body.multipart.PartBase
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
-
-
-
-
Constructor Detail
-
FileLikePart
protected FileLikePart(String name, String contentType, Charset charset, String fileName, String contentId, String transferEncoding)
FilePart Constructor.- Parameters:
name- the name for this partcontentType- the content type for this part, ifnulltry to figure out from the fileName mime typecharset- the charset encoding for this partfileName- the fileNamecontentId- the content idtransferEncoding- the transfer encoding
-
-