Interface IMultipartBody
public interface IMultipartBody
This interface abstracts the IBM API for MultipartBody operations.
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve all IAttachment in the IMultipartBody implementation object.getAttachment
(String contentId) Retrieve IAttachment in the IMultipartBody implementation object according to the contentId.Retrieve all child IAttachment in the IMultipartBody implementation object.Retrieve the root IAttachment in the IMultipartBody implementation object.javax.ws.rs.core.MediaType
getType()
Retrieve MediaType for the IMultipartBody implementation object.
-
Method Details
-
getType
javax.ws.rs.core.MediaType getType()Retrieve MediaType for the IMultipartBody implementation object.- Returns:
- MediaType for the IMultipartBody implementation object.
-
getAllAttachments
List<IAttachment> getAllAttachments()Retrieve all IAttachment in the IMultipartBody implementation object.- Returns:
- List of all IAttachment in the IMultipartBody implementation object.
-
getChildAttachments
List<IAttachment> getChildAttachments()Retrieve all child IAttachment in the IMultipartBody implementation object.- Returns:
- List of all child IAttachment in the IMultipartBody implementation object.
-
getRootAttachment
IAttachment getRootAttachment()Retrieve the root IAttachment in the IMultipartBody implementation object.- Returns:
- the root IAttachment in the IMultipartBody implementation object.
-
getAttachment
Retrieve IAttachment in the IMultipartBody implementation object according to the contentId.- Parameters:
content
- -id value in header- Returns:
- the IAttachment in the IMultipartBody implementation object according to the contentId.
-