Interface IMultipartBody


  • public interface IMultipartBody
    This interface abstracts the IBM API for MultipartBody operations.
    • Method Detail

      • getType

        javax.ws.rs.core.MediaType getType()
        Retrieve MediaType for the IMultipartBody implementation object.
        Returns:
        MediaType for the IMultipartBody implementation object.
      • getAllAttachments

        java.util.List<IAttachment> getAllAttachments()
        Retrieve all IAttachment in the IMultipartBody implementation object.
        Returns:
        List of all IAttachment in the IMultipartBody implementation object.
      • getChildAttachments

        java.util.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

        IAttachment getAttachment​(java.lang.String contentId)
        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.