Class AttachmentUploadRequest
- java.lang.Object
-
- com.atlassian.confluence.pages.actions.AttachmentUploadRequest
-
public class AttachmentUploadRequest extends Object
Converts an attachment upload multipart request into a list ofAttachmentResource
objects which is suitable for storing in Confluence via aFileStorer
.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description AttachmentUploadRequest(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper request)
The client should check for errors viaMultiPartRequestWrapper.hasErrors()
before constructing this object, and not construct one if there are problems.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getResourceCount()
List<AttachmentResource>
getResources()
-
-
-
Constructor Detail
-
AttachmentUploadRequest
public AttachmentUploadRequest(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper request) throws IllegalStateException
The client should check for errors viaMultiPartRequestWrapper.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
-
getResources
public List<AttachmentResource> getResources()
-
getResourceCount
public int getResourceCount()
-
-