Class Multiparts
java.lang.Object
com.linecorp.armeria.common.multipart.Multiparts
public final class Multiparts extends Object
Utility methods to support multipart metadata handling.
-
Method Summary
Modifier and Type Method Description static String
getBoundary(MediaType contentType)
Extractsboundary
parameter value from the multipartMediaType
.
-
Method Details
-
getBoundary
Extractsboundary
parameter value from the multipartMediaType
.- Parameters:
contentType
-MediaType
that represents on of the multipart subtypes.- Returns:
boundary
parameter value extracted from the multipartMediaType
.- Throws:
IllegalArgumentException
- if the specifiedMediaType
is not multipartIllegalStateException
- ifboundary
parameter is missing on the specifiedMediaType
-