Class AttachmentUtils
java.lang.Object
org.apache.cxf.jaxrs.utils.multipart.AttachmentUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic List<Attachment>static List<Attachment>getAttachments(MessageContext mc, String attachmentDir, String attachmentThreshold, String attachmentMaxSize) static Map<String,Attachment> static Map<String,Attachment> getAttachmentsMap(MessageContext mc, boolean preferContentDisposition) static List<Attachment>static Map<String,Attachment> static Map<String,Attachment> getChildAttachmentsMap(MessageContext mc, boolean preferContentDisposition) static AttachmentgetFirstMatchingPart(MessageContext mc, String id) static AttachmentgetFirstMatchingPart(MessageContext mc, String id, String mediaType) static Attachmentstatic List<Attachment>getMatchingAttachments(String id, String mediaType, List<Attachment> infos) static List<Attachment>getMatchingAttachments(String id, List<Attachment> infos) static List<Attachment>getMatchingAttachments(Multipart id, List<Attachment> infos) static AttachmentgetMultipart(Multipart id, jakarta.ws.rs.core.MediaType mt, List<Attachment> infos) static MultipartBodystatic MultipartBodygetMultipartBody(MessageContext mc, String attachmentDir, String attachmentThreshold, String attachmentMaxSize) static booleanmatchAttachmentId(Attachment at, String value) static booleanmatchAttachmentId(Attachment at, Multipart mid) populateFormMap(MessageContext mc, boolean errorIfMissing)
-
Field Details
-
OUT_FILTERS
- See Also:
-
IN_FILTERS
- See Also:
-
-
Method Details
-
addMultipartOutFilter
-
addMultipartInFilter
-
getMultipartBody
-
getChildAttachmentsMap
public static Map<String,Attachment> getChildAttachmentsMap(MessageContext mc, boolean preferContentDisposition) -
getChildAttachmentsMap
-
getChildAttachments
-
getAttachmentsMap
public static Map<String,Attachment> getAttachmentsMap(MessageContext mc, boolean preferContentDisposition) -
getAttachmentsMap
-
getAttachments
-
getFirstMatchingPart
-
getFirstMatchingPart
-
getFirstMatchingPart
-
getMultipartBody
public static MultipartBody getMultipartBody(MessageContext mc, String attachmentDir, String attachmentThreshold, String attachmentMaxSize) -
getAttachments
public static List<Attachment> getAttachments(MessageContext mc, String attachmentDir, String attachmentThreshold, String attachmentMaxSize) -
getMultipart
public static Attachment getMultipart(Multipart id, jakarta.ws.rs.core.MediaType mt, List<Attachment> infos) throws IOException - Throws:
IOException
-
getMatchingAttachments
-
getMatchingAttachments
-
getMatchingAttachments
public static List<Attachment> getMatchingAttachments(String id, String mediaType, List<Attachment> infos) -
matchAttachmentId
-
matchAttachmentId
-
populateFormMap
public static jakarta.ws.rs.core.MultivaluedMap<String,String> populateFormMap(MessageContext mc, boolean errorIfMissing) -
populateFormMap
-