/* */ }
/* */
/* 221 */ Collection attachments = null;
/* 222 */ if (isMultipartRelatedContent(contentType))
/* */ {
/* */ MultipartRelatedDecoder decoder;
/* */ try {
/* 227 */ decoder = new MultipartRelatedDecoder(contentType);
/* 228 */ decoder.decodeMultipartRelatedMessage(inputStream);
/* */ }
/* */ catch (RuntimeException rte)
/* */ {
/* 232 */ throw rte;
/* */ }
/* */ catch (IOException ex)
/* */ {
/* 236 */ throw ex;
/* */ }
/* */ catch (Exception ex)
/* */ {
/* 240 */ throw new SOAPException("Cannot decode multipart related message", ex);
/* */ }
/* */
/* 243 */ inputStream = decoder.getRootPart().getDataHandler().getInputStream();
/* 244 */ attachments = decoder.getRelatedParts();
/* */ }
/* 246 */ else if (!isSoapContent(contentType))
/* */ {
/* 248 */ throw new SOAPException("Unsupported content type: " + contentType);
/* */ }