Skip navigation links

Oracle Containers for J2EE Support for JavaServer Pages Java API Reference
10g (10.1.3.1.0)

B28960-01


oracle.jsp.webutil.fileaccess
Class HttpDownloadBean

java.lang.Object
  extended byoracle.jsp.webutil.fileaccess.HttpFileAccessBean
      extended byoracle.jsp.webutil.fileaccess.HttpDownloadBean

All Implemented Interfaces:
java.io.Serializable

public class HttpDownloadBean
extends oracle.jsp.webutil.fileaccess.HttpFileAccessBean
implements java.io.Serializable

This bean lists the files available for download based on the input criteria. "*" as the source property gives everything under the basedir or for database, removes the fileprefixColumn from the select. Connection is saved in the session object.

See Also:
Serialized Form

Constructor Summary
HttpDownloadBean()
           

 

Method Summary
 java.lang.String getDataColumn()
           
 java.lang.String getDocCharacterset()
          Bug#2706970 : Add getter for docCharacterset for httpupload in character mode (CLOB) New Parameter : docCharacterset This attribute is added to FileDetails.
 java.lang.String getFileNameColumn()
           
 java.util.Enumeration getFileNames()
          return the list of file that were uploaded <p/>
 java.lang.String getFileType()
           
 java.lang.String getPrefixColumn()
           
 java.lang.String getRecurse()
           
 java.lang.String getSource()
           
 java.lang.String getSourceType()
           
 java.lang.String getTable()
           
 void listFiles(HttpServletRequest req)
          List the files available for download <p/>
 void setBaseDir(ServletContext servletContext, HttpServletRequest request)
           
 void setConnection(ConnBean cb)
           
 void setConnection(java.sql.Connection conn)
           
 void setDataColumn(java.lang.String s)
           
 void setDocCharacterset(java.lang.String charset)
          Bug#2706970 : Add setter for docCharacterset for httpupload in character mode (CLOB) New Parameter : docCharacterset This attribute is added to FileDetails.
 void setFileNameColumn(java.lang.String s)
           
 void setFileType(int i)
           
 void setFileType(java.lang.String s)
           
 void setPrefixColumn(java.lang.String s)
           
 void setRecurse(boolean recurse)
           
 void setRecurse(java.lang.String s)
           
 void setSource(java.lang.String s)
           
 void setSourceType(int srcType)
           
 void setSourceType(java.lang.String srcType)
           
 void setTable(java.lang.String s)
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

HttpDownloadBean

public HttpDownloadBean()

Method Detail

listFiles

public void listFiles(HttpServletRequest req)
               throws FileAccessException
List the files available for download <p/>
Throws:
FileAccessException

setRecurse

public void setRecurse(java.lang.String s)
                throws FileAccessException
Throws:
FileAccessException

setRecurse

public void setRecurse(boolean recurse)

setSourceType

public void setSourceType(java.lang.String srcType)
                   throws FileAccessException
Throws:
FileAccessException

setSourceType

public void setSourceType(int srcType)
                   throws FileAccessException
Throws:
FileAccessException

setSource

public void setSource(java.lang.String s)
               throws FileAccessException
Throws:
FileAccessException

setFileType

public void setFileType(java.lang.String s)
                 throws FileAccessException
Throws:
FileAccessException

setFileType

public void setFileType(int i)
                 throws FileAccessException
Throws:
FileAccessException

setTable

public void setTable(java.lang.String s)
              throws FileAccessException
Throws:
FileAccessException

setPrefixColumn

public void setPrefixColumn(java.lang.String s)
                     throws FileAccessException
Throws:
FileAccessException

setFileNameColumn

public void setFileNameColumn(java.lang.String s)
                       throws FileAccessException
Throws:
FileAccessException

setDataColumn

public void setDataColumn(java.lang.String s)
                   throws FileAccessException
Throws:
FileAccessException

setConnection

public void setConnection(ConnBean cb)

setConnection

public void setConnection(java.sql.Connection conn)

setBaseDir

public void setBaseDir(ServletContext servletContext,
                       HttpServletRequest request)
                throws FileAccessException
Parameters:
servletContext - - current ServletContext (application obj from jsp)
request - - current HttpServletRequest (request obj from jsp) for file system, the basedir is defined in WEB-INF/fileaccess.properties
Throws:
FileAccessException

setDocCharacterset

public void setDocCharacterset(java.lang.String charset)
Bug#2706970 : Add setter for docCharacterset for httpupload in character mode (CLOB) New Parameter : docCharacterset This attribute is added to FileDetails.

getRecurse

public java.lang.String getRecurse()

getSourceType

public java.lang.String getSourceType()

getSource

public java.lang.String getSource()

getFileType

public java.lang.String getFileType()

getTable

public java.lang.String getTable()

getPrefixColumn

public java.lang.String getPrefixColumn()

getFileNameColumn

public java.lang.String getFileNameColumn()

getDataColumn

public java.lang.String getDataColumn()

getFileNames

public java.util.Enumeration getFileNames()
return the list of file that were uploaded <p/>

getDocCharacterset

public java.lang.String getDocCharacterset()
Bug#2706970 : Add getter for docCharacterset for httpupload in character mode (CLOB) New Parameter : docCharacterset This attribute is added to FileDetails.

Skip navigation links

Oracle Containers for J2EE Support for JavaServer Pages Java API Reference
10g (10.1.3.1.0)

B28960-01


Copyright © 2004, 2006, Oracle. All rights reserved.