|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.esupportail.portal.utils.channels.SubChannel
org.esupportail.portal.channels.CIntranet.actions.intranet.AbstractAction
org.esupportail.portal.channels.CIntranet.actions.intranet.Download
public class Download
Download
Cette classe prend en charge le téléchargement d'un document
(c)Copyright ESup-Portail 2004
Constructor Summary | |
---|---|
Download(org.esupportail.portal.utils.channels.MainChannel mainChannel)
Constructeur |
Method Summary | |
---|---|
void |
clearChannel()
Nettoyage du canal Override Subchannel.clearChannel method |
void |
downloadData(java.io.OutputStream out)
Construit le flux de sortie du fichier Implements IMimeResponse interface |
java.lang.String |
getContentType()
Retourne le type MIME du document Implements IMimeResponse interface |
java.util.Map |
getHeaders()
Retourne la tables des headers HTTP Implements IMimeResponse interface |
java.io.InputStream |
getInputStream()
Retourne le flux de lecture du fichier Implements IMimeResponse interface |
int |
getLevel()
Indique le niveau requis pour réaliser cette action Implements AbstractAction.getLevel() method |
java.lang.String |
getName()
Retourne le nom du fichier Implements IMimeResponse interface Warning : méthode inutilisée |
java.lang.Boolean |
init(org.jasig.portal.ChannelRuntimeData rd)
Etape 2/4 du cycle de vie de la SubChannel Prépare le document à télécharger Override SubChannel.init() method |
void |
reportDownloadError(java.lang.Exception e)
Indique une erreur en cours de téléchargement Implements IMimeResponse interface |
Methods inherited from class org.esupportail.portal.channels.CIntranet.actions.intranet.AbstractAction |
---|
initialize |
Methods inherited from class org.esupportail.portal.utils.channels.SubChannel |
---|
addDefaultXslParameters, addDownloadXslParameter, generateKey, getMainChannel, getMediaPath, getMediaPathMAG, getPackageName, getRuntimeData, getSSL, getXML, getXSL, getXSLParameter, isCacheValid, log, log, logXslParameters, renderXML, setDefaultXslParameters, setOutput, setSSL, setXML, setXML, setXSL, setXSLParameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Download(org.esupportail.portal.utils.channels.MainChannel mainChannel)
mainChannel
- La channel principaleMethod Detail |
---|
public int getLevel()
getLevel
in class AbstractAction
public java.lang.Boolean init(org.jasig.portal.ChannelRuntimeData rd) throws org.jasig.portal.PortalException, org.esupportail.portal.utils.channels.FrameWorkException
init
in interface org.esupportail.portal.utils.channels.ISubChannel
init
in class org.esupportail.portal.utils.channels.SubChannel
rd
- Les runtimeData
org.jasig.portal.PortalException
org.esupportail.portal.utils.channels.FrameWorkException
public void clearChannel()
clearChannel
in interface org.esupportail.portal.utils.channels.ISubChannel
clearChannel
in class org.esupportail.portal.utils.channels.SubChannel
public java.lang.String getContentType()
getContentType
in interface org.jasig.portal.IMimeResponse
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface org.jasig.portal.IMimeResponse
java.io.IOException
public void downloadData(java.io.OutputStream out) throws java.io.IOException
downloadData
in interface org.jasig.portal.IMimeResponse
out
- Le flux de sortie
java.io.IOException
public java.lang.String getName()
getName
in interface org.jasig.portal.IMimeResponse
public java.util.Map getHeaders()
getHeaders
in interface org.jasig.portal.IMimeResponse
public void reportDownloadError(java.lang.Exception e)
reportDownloadError
in interface org.jasig.portal.IMimeResponse
e
- L'exception rencontrée
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |