attachmentMaxSize).getAllAttachments();
}
public static Attachment getMultipart(Class<Object> c, Annotation[] anns,
MediaType mt, List<Attachment> infos) throws IOException {
Multipart id = AnnotationUtils.getAnnotation(anns, Multipart.class);
if (id != null) {
for (Attachment a : infos) {
if (matchAttachmentId(a, id, mt)) {
checkMediaTypes(a.getContentType(), id.type());
return a;
}
}
org.apache.cxf.common.i18n.Message errorMsg =
new org.apache.cxf.common.i18n.Message("MULTTIPART_ID_NOT_FOUND",
BUNDLE,
id.value(),
mt.toString());
LOG.warning(errorMsg.toString());
return null;
}