public class MultipartUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
getLengthOfParts(List<Part> parts,
byte[] partBoundary) |
static byte[] |
getMessageEnd(byte[] partBoundary) |
static MultipartBody |
newMultipartBody(List<Part> parts,
io.netty.handler.codec.http.HttpHeaders requestHeaders)
Creates a new multipart entity containing the given parts.
|
static long |
writeBytesToChannel(WritableByteChannel target,
byte[] bytes) |
public static MultipartBody newMultipartBody(List<Part> parts, io.netty.handler.codec.http.HttpHeaders requestHeaders)
parts - the parts to include.requestHeaders - the request headerspublic static long writeBytesToChannel(WritableByteChannel target, byte[] bytes) throws IOException
IOExceptionpublic static byte[] getMessageEnd(byte[] partBoundary)
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.