Class FileStorer
- java.lang.Object
 - 
- com.atlassian.confluence.pages.actions.beans.FileStorer
 
 
- 
- Direct Known Subclasses:
 ImageStorer
public class FileStorer extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected com.opensymphony.xwork2.ActionSupportactionprotected ContentEntityObjectcontentprotected StringfileNameprotected EnumerationfileParameterNamesprotected booleaninited 
- 
Constructor Summary
Constructors Constructor Description FileStorer(com.opensymphony.xwork2.ActionSupport action, ContentEntityObject content) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()voidprocessMultipartRequest(org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper multiPartRequest)Checks the request to see that the MultiPartRequest provided contains a valid image. 
 - 
 
- 
- 
Field Detail
- 
action
protected final com.opensymphony.xwork2.ActionSupport action
 
- 
content
protected final ContentEntityObject content
 
- 
fileParameterNames
protected Enumeration fileParameterNames
 
- 
fileName
protected String fileName
 
- 
inited
protected boolean inited
 
 - 
 
- 
Constructor Detail
- 
FileStorer
public FileStorer(com.opensymphony.xwork2.ActionSupport action, ContentEntityObject content) 
 - 
 
- 
Method Detail
- 
getFileName
public String getFileName()
 
- 
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.- Parameters:
 multiPartRequest- to process
 
 - 
 
 -