Extracts the encapsulation boundary from the media type. @param type media type @return boundary or null @throws QueryException query exception
(final MediaType type)
| 225 | * @throws QueryException query exception |
| 226 | */ |
| 227 | private byte[] boundary(final MediaType type) throws QueryException { |
| 228 | final String b = type.parameter(BOUNDARY); |
| 229 | if(b == null) throw HC_REQ_X.get(info, "No separation boundary specified"); |
| 230 | return token(b); |
| 231 | } |
| 232 | |
| 233 | /** |
| 234 | * Returns a map with multipart form data. |