org.apache.myfaces.trinidadinternal.config.upload
Class UploadedFiles

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.config.upload.UploadedFiles

public final class UploadedFiles
extends java.lang.Object

UploadedFiles defines the set of files that have been uploaded to the server.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/webapp/UploadedFiles.java#0 $) $Date: 10-nov-2005.18:49:05 $
Author:
The Oracle ADF Faces Team

Nested Class Summary
static class UploadedFiles.FixFilename
           
 
Method Summary
 void dispose()
          Dispose of all UploadedFiles.
 long getTotalDiskSpace()
          Return the tally of total disk space used.
 long getTotalMemory()
          Return the tally of total memory used.
 org.apache.myfaces.trinidad.model.UploadedFile getUploadedFile(java.lang.String name)
          Returns a single uploaded file.
static UploadedFiles getUploadedFiles(javax.faces.context.FacesContext context)
          Returns the map of uploaded files for the current request.
 java.util.Iterator<java.lang.String> getUploadedNames()
          Returns an Iterator of the names of all uploaded files.
static void setCharacterEncoding(javax.faces.context.ExternalContext externalContext, java.lang.String encoding)
          Store the character encoding for the current request.
static void setCharacterEncoding(javax.servlet.http.HttpServletRequest req, java.lang.String encoding)
           
static void setCharacterEncoding(javax.portlet.PortletRequest req, java.lang.String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUploadedFiles

public static UploadedFiles getUploadedFiles(javax.faces.context.FacesContext context)
Returns the map of uploaded files for the current request.


setCharacterEncoding

public static void setCharacterEncoding(javax.faces.context.ExternalContext externalContext,
                                        java.lang.String encoding)
Store the character encoding for the current request.


setCharacterEncoding

public static void setCharacterEncoding(javax.servlet.http.HttpServletRequest req,
                                        java.lang.String encoding)

setCharacterEncoding

public static void setCharacterEncoding(javax.portlet.PortletRequest req,
                                        java.lang.String encoding)

getUploadedFile

public org.apache.myfaces.trinidad.model.UploadedFile getUploadedFile(java.lang.String name)
Returns a single uploaded file.

Parameters:
name - the name under which the file is stored. In HTML forms, this will be derived from the "name" set on the <input> tag.

getUploadedNames

public java.util.Iterator<java.lang.String> getUploadedNames()
Returns an Iterator of the names of all uploaded files.


dispose

public void dispose()
Dispose of all UploadedFiles. This will happen automatically when the current request ends, so clients do not need to call this method. However, if a developer is finished with processing files, this will free up resources earlier.


getTotalMemory

public long getTotalMemory()
Return the tally of total memory used.


getTotalDiskSpace

public long getTotalDiskSpace()
Return the tally of total disk space used.



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.