com.atlassian.confluence.pages.actions.beans
Class FileStorer

java.lang.Object
  extended by com.atlassian.confluence.pages.actions.beans.FileStorer
Direct Known Subclasses:
ImageStorer

public class FileStorer
extends java.lang.Object


Field Summary
protected  com.opensymphony.xwork.ActionSupport action
           
protected  ContentEntityObject content
           
protected  java.lang.String fileName
           
protected  java.util.Enumeration fileParameterNames
           
protected  boolean inited
           
 
Constructor Summary
FileStorer(com.opensymphony.xwork.ActionSupport action, ContentEntityObject content)
           
 
Method Summary
 java.lang.String getFileName()
           
 void processMultipartRequest(com.opensymphony.webwork.dispatcher.multipart.MultiPartRequestWrapper multiPartRequest)
          Checks the request to see that the MultiPartRequest provided contains a valid image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

action

protected final com.opensymphony.xwork.ActionSupport action

content

protected final ContentEntityObject content

fileParameterNames

protected java.util.Enumeration fileParameterNames

fileName

protected java.lang.String fileName

inited

protected boolean inited
Constructor Detail

FileStorer

public FileStorer(com.opensymphony.xwork.ActionSupport action,
                  ContentEntityObject content)
Method Detail

getFileName

public java.lang.String getFileName()

processMultipartRequest

public void processMultipartRequest(com.opensymphony.webwork.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


Copyright © 2003-2014 Atlassian. All Rights Reserved.