Class AttachmentUtils
java.lang.Object
org.apache.cxf.jaxrs.utils.multipart.AttachmentUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
static 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 Attachment
getFirstMatchingPart
(MessageContext mc, String id) static Attachment
getFirstMatchingPart
(MessageContext mc, String id, String mediaType) static Attachment
static 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 Attachment
getMultipart
(Multipart id, jakarta.ws.rs.core.MediaType mt, List<Attachment> infos) static MultipartBody
static MultipartBody
getMultipartBody
(MessageContext mc, String attachmentDir, String attachmentThreshold, String attachmentMaxSize) static boolean
matchAttachmentId
(Attachment at, String value) static boolean
matchAttachmentId
(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
-