com.logicaldoc.web.upload
Class InputFileBean

java.lang.Object
  extended by 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
           
 
Constructor Summary
InputFileBean()
           
 
Method Summary
 void action(javax.faces.event.ActionEvent event)
           
 void deleteUploadDir()
           
 java.lang.StringBuffer getContent()
          Reads the uploaded file and stores it's content into a string bufferO.
 java.lang.String getContentType()
           
 java.lang.String getDescription()
           
 java.lang.String getEncoding()
           
 java.io.File getFile()
           
 java.lang.String getFileName()
           
 com.icesoft.faces.component.inputfile.InputFile getInputFile()
           
 java.lang.String getLanguage()
           
 int getPercent()
           
 com.icesoft.faces.webapp.xmlhttp.PersistentFacesState getState()
          Get the PersistentFacesState.
 java.lang.String getTags()
           
 java.lang.Long getTemplate()
           
 boolean isExtractTags()
           
 boolean isImmediateIndexing()
           
 boolean isReady()
           
 void progress(java.util.EventObject event)
           
 void renderingException(com.icesoft.faces.webapp.xmlhttp.RenderingException renderingException)
          Handles rendering exceptions for the progress bar.
 void reset()
           
 void setContentType(java.lang.String contentType)
           
 void setDescription(java.lang.String description)
           
 void setEncoding(java.lang.String encoding)
           
 void setExtractTags(boolean extractTags)
           
 void setFile(java.io.File file)
           
 void setFileName(java.lang.String fileName)
           
 void setImmediateIndexing(boolean immediateIndexing)
           
 void setInputFile(com.icesoft.faces.component.inputfile.InputFile inputFile)
           
 void setLanguage(java.lang.String language)
           
 void setPercent(int percent)
           
 void setTags(java.lang.String tags)
           
 void setTemplate(java.lang.Long template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

InputFileBean

public InputFileBean()
Method Detail

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.