Apache CXF API

org.apache.cxf.jaxrs.utils.multipart
Class AttachmentUtils

java.lang.Object
  extended by 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 List<Attachment> getChildAttachments(MessageContext mc)
           
static Map<String,Attachment> getChildAttachmentsMap(MessageContext mc)
           
static Attachment getMultipart(Class<Object> c, 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 javax.ws.rs.core.MultivaluedMap<String,String> populateFormMap(MessageContext mc)
           
static
<T> javax.ws.rs.core.MultivaluedMap<String,T>
populateFormMap(MessageContext mc, Class<T> cls, boolean errorIfMissing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMultipartBody

public static MultipartBody getMultipartBody(MessageContext mc)

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)

getAttachments

public static List<Attachment> getAttachments(MessageContext mc)

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(Class<Object> c,
                                      Multipart id,
                                      javax.ws.rs.core.MediaType mt,
                                      List<Attachment> infos)
                               throws IOException
Throws:
IOException

populateFormMap

public static <T> javax.ws.rs.core.MultivaluedMap<String,T> populateFormMap(MessageContext mc,
                                                                            Class<T> cls,
                                                                            boolean errorIfMissing)

populateFormMap

public static javax.ws.rs.core.MultivaluedMap<String,String> populateFormMap(MessageContext mc)

Apache CXF API

Apache CXF