|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ejie.r01f.servlet.download.FileDownloadReader
Lee ficheros del disco para ser descargados a un navegador utilizando
el DownloadServlet
El directorio en el que estan los ficheros se establece en
el fichero properties en una sección como:
| Constructor Summary | |
FileDownloadReader()
Constructor for FileDownloadReader. |
|
| Method Summary | |
java.io.InputStream |
getBinaryStream()
Obtiene un InputStream al fichero a descargar |
java.lang.String |
getResourceName()
Devuelve el nombre del recurso |
void |
setConfig(java.util.Properties props)
Establece valores de configuración del partDigester (hay una propiedad especial "appCode" que indica el código de aplicación) |
void |
setRequestParams(java.util.Map params)
Pasa los parametros de la request para que el ContentReader pueda obtener el recurso a descargar |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileDownloadReader()
| Method Detail |
public void setConfig(java.util.Properties props)
setConfig in interface DownloadContentReaderpublic void setRequestParams(java.util.Map params)
DownloadContentReader
setRequestParams in interface DownloadContentReader
public java.io.InputStream getBinaryStream()
throws java.io.IOException
getBinaryStream in interface DownloadContentReaderjava.io.IOException - si hay algún error durante la lecturacom.ejie.r01f.servlet.DownloadContentReader#getBinaryStream()public java.lang.String getResourceName()
DownloadContentReader
getResourceName in interface DownloadContentReader
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||