MultipartRelatedPost post = getMultipartRelatedData(request);
// Post object is a wrapper for the media resource and the media link entry.
// Once we get it we can save them following the rfc specification.
}
return new EmptyResponseContext(201);
} catch (ParseException pe) {
return new EmptyResponseContext(415, pe.getLocalizedMessage());
} catch (IOException ioe) {
return new EmptyResponseContext(500, ioe.getLocalizedMessage());
} catch (MessagingException e) {
return new EmptyResponseContext(500, e.getLocalizedMessage());
}
}