Class ByteArrayPart
- java.lang.Object
-
- org.asynchttpclient.request.body.multipart.PartBase
-
- org.asynchttpclient.request.body.multipart.FileLikePart
-
- org.asynchttpclient.request.body.multipart.ByteArrayPart
-
- All Implemented Interfaces:
Part
public class ByteArrayPart extends FileLikePart
-
-
Constructor Summary
Constructors Constructor Description ByteArrayPart(String name, byte[] bytes)
ByteArrayPart(String name, byte[] bytes, String contentType)
ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset)
ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName)
ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId)
ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId, String transferEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
-
Methods inherited from class org.asynchttpclient.request.body.multipart.FileLikePart
getFileName, toString
-
Methods inherited from class org.asynchttpclient.request.body.multipart.PartBase
addCustomHeader, getCharset, getContentId, getContentType, getCustomHeaders, getDispositionType, getName, getTransferEncoding, setCustomHeaders, setDispositionType
-
-
-
-
Constructor Detail
-
ByteArrayPart
public ByteArrayPart(String name, byte[] bytes)
-
ByteArrayPart
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName)
-
ByteArrayPart
public ByteArrayPart(String name, byte[] bytes, String contentType, Charset charset, String fileName, String contentId)
-
-