Class Multiparts
java.lang.Object
com.linecorp.armeria.common.multipart.Multiparts
Utility methods to support multipart metadata handling.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-