public class HttpMultipartEncoder extends Object
HttpEntity.| Modifier and Type | Field and Description |
|---|---|
static String |
AMBIGUOUS_TYPE_ERROR_MESSAGE |
static String |
ATTACHMENT |
static String |
MANDATORY_TYPE_ERROR_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
static String |
getContentTypeParameter(String contentType,
String parameterName)
Extracts a parameter value from a content type
|
static byte[] |
toByteArray(org.mule.runtime.http.api.domain.entity.HttpEntity multipartEntity,
String contentType) |
static javax.mail.internet.MimeMultipart |
toMimeMultipart(org.mule.runtime.http.api.domain.entity.HttpEntity body,
String contentType) |
public static final String ATTACHMENT
public static final String MANDATORY_TYPE_ERROR_MESSAGE
public static final String AMBIGUOUS_TYPE_ERROR_MESSAGE
public static javax.mail.internet.MimeMultipart toMimeMultipart(org.mule.runtime.http.api.domain.entity.HttpEntity body,
String contentType)
throws IOException
IOExceptionpublic static byte[] toByteArray(org.mule.runtime.http.api.domain.entity.HttpEntity multipartEntity,
String contentType)
throws IOException
IOExceptionpublic static String getContentTypeParameter(String contentType, String parameterName)
contentType - the content typeparameterName: - the name of the parameter to extract.Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.