Class AttachmentUploadRequest


  • public class AttachmentUploadRequest
    extends Object
    Converts an attachment upload multipart request into a list of AttachmentResource objects which is suitable for storing in Confluence via a FileStorer.
    Since:
    3.1
    • Constructor Detail

      • AttachmentUploadRequest

        public AttachmentUploadRequest​(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper request)
                                throws IllegalStateException
        The client should check for errors via MultiPartRequestWrapper.hasErrors() before constructing this object, and not construct one if there are problems.
        Throws:
        IllegalStateException - if there are errors in the multipart request
    • Method Detail

      • getResourceCount

        public int getResourceCount()