public class MultipartDecoder extends Object
| Constructor and Description |
|---|
MultipartDecoder() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.jvnet.mimepull.MIMEPart> |
decodeBodyParts(String contentType,
InputStream inputStream)
Decode multiparts from a given input stream.
|
static void |
parseBody(Context context,
BStruct entity,
String contentType,
InputStream inputStream)
Decode inputstream and populate ballerina body parts.
|
public static void parseBody(Context context, BStruct entity, String contentType, InputStream inputStream)
context - Represent ballerina contextentity - Represent ballerina entity which needs to be populated with body partscontentType - Content-Type of the top level messageinputStream - Represent input stream coming from the request/responsepublic static List<org.jvnet.mimepull.MIMEPart> decodeBodyParts(String contentType, InputStream inputStream) throws MimeTypeParseException
contentType - Content-Type of the top level messageinputStream - Represent input stream coming from the request/responseMimeTypeParseException - When an inputstream cannot be decoded properlyCopyright © 2018 WSO2. All rights reserved.