Class ImageStorer
java.lang.Object
com.atlassian.confluence.pages.actions.beans.FileStorer
com.atlassian.confluence.pages.actions.beans.ImageStorer
-
Field Summary
Fields inherited from class com.atlassian.confluence.pages.actions.beans.FileStorer
action, content, fileName, fileParameterNames, inited
-
Constructor Summary
ConstructorDescriptionImageStorer
(com.opensymphony.xwork2.ActionSupport action, ContentEntityObject content, ThumbnailManager thumbnailManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processMultipartRequest
(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper multiPartRequest) Checks the request to see that the MultiPartRequest provided contains a valid image.Methods inherited from class com.atlassian.confluence.pages.actions.beans.FileStorer
getFileName
-
Constructor Details
-
ImageStorer
public ImageStorer(com.opensymphony.xwork2.ActionSupport action, ContentEntityObject content, ThumbnailManager thumbnailManager)
-
-
Method Details
-
processMultipartRequest
public void processMultipartRequest(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper multiPartRequest) Checks the request to see that the MultiPartRequest provided contains a valid image. It will also set the fileName which it extracts from the provived request. Note that this method will set errors on the provided Action directly.- Overrides:
processMultipartRequest
in classFileStorer
- Parameters:
multiPartRequest
- to process
-