Apache CXF API

org.apache.cxf.jaxrs.ext.multipart
Class MultipartBody

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.multipart.MultipartBody

public class MultipartBody
extends Object


Field Summary
static String INBOUND_MESSAGE_ATTACHMENTS
           
static String OUTBOUND_MESSAGE_ATTACHMENTS
           
 
Constructor Summary
MultipartBody(Attachment att)
           
MultipartBody(boolean outbound)
           
MultipartBody(List<Attachment> atts)
           
MultipartBody(List<Attachment> atts, boolean outbound)
           
MultipartBody(List<Attachment> atts, javax.ws.rs.core.MediaType mt, boolean outbound)
           
 
Method Summary
 List<Attachment> getAllAttachments()
           
 Attachment getAttachment(String contentId)
           
<T> T
getAttachmentObject(String contentId, Class<T> cls)
           
 List<Attachment> getChildAttachments()
           
 Attachment getRootAttachment()
           
 javax.ws.rs.core.MediaType getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INBOUND_MESSAGE_ATTACHMENTS

public static final String INBOUND_MESSAGE_ATTACHMENTS
See Also:
Constant Field Values

OUTBOUND_MESSAGE_ATTACHMENTS

public static final String OUTBOUND_MESSAGE_ATTACHMENTS
See Also:
Constant Field Values
Constructor Detail

MultipartBody

public MultipartBody(List<Attachment> atts,
                     javax.ws.rs.core.MediaType mt,
                     boolean outbound)

MultipartBody

public MultipartBody(List<Attachment> atts,
                     boolean outbound)

MultipartBody

public MultipartBody(Attachment att)

MultipartBody

public MultipartBody(List<Attachment> atts)

MultipartBody

public MultipartBody(boolean outbound)
Method Detail

getType

public javax.ws.rs.core.MediaType getType()

getAllAttachments

public List<Attachment> getAllAttachments()

getChildAttachments

public List<Attachment> getChildAttachments()

getRootAttachment

public Attachment getRootAttachment()

getAttachment

public Attachment getAttachment(String contentId)

getAttachmentObject

public <T> T getAttachmentObject(String contentId,
                                 Class<T> cls)

Apache CXF API

Apache CXF