org.apache.cxf.jaxrs.utils.multipart
Class AttachmentUtils
java.lang.Object
org.apache.cxf.jaxrs.utils.multipart.AttachmentUtils
public final class AttachmentUtils
- extends Object
Method Summary |
static List<Attachment> |
getAttachments(MessageContext mc)
|
static List<Attachment> |
getAttachments(MessageContext mc,
String attachmentDir,
String attachmentThreshold,
String attachmentMaxSize)
|
static Map<String,Attachment> |
getAttachmentsMap(MessageContext mc)
|
static Map<String,Attachment> |
getAttachmentsMap(MessageContext mc,
boolean preferContentDisposition)
|
static List<Attachment> |
getChildAttachments(MessageContext mc)
|
static Map<String,Attachment> |
getChildAttachmentsMap(MessageContext mc)
|
static Map<String,Attachment> |
getChildAttachmentsMap(MessageContext mc,
boolean preferContentDisposition)
|
static Attachment |
getFirstMatchingPart(MessageContext mc,
Multipart id)
|
static Attachment |
getFirstMatchingPart(MessageContext mc,
String id)
|
static Attachment |
getFirstMatchingPart(MessageContext mc,
String id,
String mediaType)
|
static List<Attachment> |
getMatchingAttachments(Multipart id,
List<Attachment> infos)
|
static List<Attachment> |
getMatchingAttachments(String id,
List<Attachment> infos)
|
static List<Attachment> |
getMatchingAttachments(String id,
String mediaType,
List<Attachment> infos)
|
static Attachment |
getMultipart(Multipart id,
javax.ws.rs.core.MediaType mt,
List<Attachment> infos)
|
static MultipartBody |
getMultipartBody(MessageContext mc)
|
static MultipartBody |
getMultipartBody(MessageContext mc,
String attachmentDir,
String attachmentThreshold,
String attachmentMaxSize)
|
static boolean |
matchAttachmentId(Attachment at,
Multipart mid)
|
static boolean |
matchAttachmentId(Attachment at,
String value)
|
static javax.ws.rs.core.MultivaluedMap<String,String> |
populateFormMap(MessageContext mc)
|
static javax.ws.rs.core.MultivaluedMap<String,String> |
populateFormMap(MessageContext mc,
boolean errorIfMissing)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getMultipartBody
public static MultipartBody getMultipartBody(MessageContext mc)
getChildAttachmentsMap
public static Map<String,Attachment> getChildAttachmentsMap(MessageContext mc,
boolean preferContentDisposition)
getChildAttachmentsMap
public static Map<String,Attachment> getChildAttachmentsMap(MessageContext mc)
getChildAttachments
public static List<Attachment> getChildAttachments(MessageContext mc)
getAttachmentsMap
public static Map<String,Attachment> getAttachmentsMap(MessageContext mc,
boolean preferContentDisposition)
getAttachmentsMap
public static Map<String,Attachment> getAttachmentsMap(MessageContext mc)
getAttachments
public static List<Attachment> getAttachments(MessageContext mc)
getFirstMatchingPart
public static Attachment getFirstMatchingPart(MessageContext mc,
Multipart id)
getFirstMatchingPart
public static Attachment getFirstMatchingPart(MessageContext mc,
String id)
getFirstMatchingPart
public static Attachment getFirstMatchingPart(MessageContext mc,
String id,
String mediaType)
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,
javax.ws.rs.core.MediaType mt,
List<Attachment> infos)
throws IOException
- Throws:
IOException
getMatchingAttachments
public static List<Attachment> getMatchingAttachments(Multipart id,
List<Attachment> infos)
getMatchingAttachments
public static List<Attachment> getMatchingAttachments(String id,
List<Attachment> infos)
getMatchingAttachments
public static List<Attachment> getMatchingAttachments(String id,
String mediaType,
List<Attachment> infos)
matchAttachmentId
public static boolean matchAttachmentId(Attachment at,
Multipart mid)
matchAttachmentId
public static boolean matchAttachmentId(Attachment at,
String value)
populateFormMap
public static javax.ws.rs.core.MultivaluedMap<String,String> populateFormMap(MessageContext mc,
boolean errorIfMissing)
populateFormMap
public static javax.ws.rs.core.MultivaluedMap<String,String> populateFormMap(MessageContext mc)
Apache CXF