com.logicaldoc.web.upload
Class InputFileBean
java.lang.Object
com.logicaldoc.web.upload.InputFileBean
- All Implemented Interfaces:
- com.icesoft.faces.async.render.Renderable
public class InputFileBean
- extends java.lang.Object
- implements com.icesoft.faces.async.render.Renderable
The InputFileBean class is the backing bean for the inputfile showcase
demonstration. It is used to store the state of the uploaded file.
- Since:
- 3.0
- Author:
- Marco Meschieri - Logical Objects
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
InputFileBean
public InputFileBean()
getState
public com.icesoft.faces.webapp.xmlhttp.PersistentFacesState getState()
- Get the PersistentFacesState.
- Specified by:
getState
in interface com.icesoft.faces.async.render.Renderable
- Returns:
- state the PersistantFacesState
renderingException
public void renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException renderingException)
- Handles rendering exceptions for the progress bar.
- Specified by:
renderingException
in interface com.icesoft.faces.async.render.Renderable
- Parameters:
renderingException
- the exception that occured
setPercent
public void setPercent(int percent)
getPercent
public int getPercent()
setFile
public void setFile(java.io.File file)
getFile
public java.io.File getFile()
action
public void action(javax.faces.event.ActionEvent event)
progress
public void progress(java.util.EventObject event)
setFileName
public void setFileName(java.lang.String fileName)
getFileName
public java.lang.String getFileName()
setContentType
public void setContentType(java.lang.String contentType)
getContentType
public java.lang.String getContentType()
isReady
public boolean isReady()
deleteUploadDir
public void deleteUploadDir()
getLanguage
public java.lang.String getLanguage()
setLanguage
public void setLanguage(java.lang.String language)
getContent
public java.lang.StringBuffer getContent()
throws java.io.IOException
- Reads the uploaded file and stores it's content into a string bufferO.
- Throws:
java.io.IOException
getDescription
public java.lang.String getDescription()
setDescription
public void setDescription(java.lang.String description)
reset
public void reset()
isExtractTags
public boolean isExtractTags()
setExtractTags
public void setExtractTags(boolean extractTags)
getTags
public java.lang.String getTags()
setTags
public void setTags(java.lang.String tags)
getInputFile
public com.icesoft.faces.component.inputfile.InputFile getInputFile()
setInputFile
public void setInputFile(com.icesoft.faces.component.inputfile.InputFile inputFile)
isImmediateIndexing
public boolean isImmediateIndexing()
setImmediateIndexing
public void setImmediateIndexing(boolean immediateIndexing)
getTemplate
public java.lang.Long getTemplate()
setTemplate
public void setTemplate(java.lang.Long template)
getEncoding
public java.lang.String getEncoding()
setEncoding
public void setEncoding(java.lang.String encoding)
Copyright © 2008-2010 Logical Objects. All Rights Reserved.