|
|||||||||||
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.IntranetAction
org.esupportail.portal.channels.CIntranet.actions.intranet.Download
Download
Cette action 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 | |
java.lang.Boolean |
action()
Méthode appelée si la personne a le niveau requis |
void |
downloadData(java.io.OutputStream out)
Méthode non utilisée |
java.lang.String |
getContentType()
Retourne le type MIME du document |
java.util.Map |
getHeaders()
Retourne la liste des headers HTTP à envoyer au navigateur |
java.io.InputStream |
getInputStream()
Retourne un InputStream correspondant au fichier à télécharger |
int |
getLevel()
Retourne le niveau d'accréditation minimum pour accéder à cette action |
java.lang.String |
getName()
Retourne le nom du fichier |
void |
reportDownloadError(java.lang.Exception e)
Méthode appelée si une erreur se produit durant le téléchargement |
Methods inherited from class org.esupportail.portal.channels.CIntranet.actions.intranet.IntranetAction |
init |
Methods inherited from class org.esupportail.portal.utils.channels.SubChannel |
addDefaultXslParameters, addDownloadXslParameter, clearChannel, generateKey, getMainChannel, getMediaPath, getPackageName, getRuntimeData, getSSL, getXML, getXSL, getXSLParameter, isCacheValid, log, log, 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
- Channel principaleMethod Detail |
public int getLevel()
getLevel
in class IntranetAction
public java.lang.Boolean action() throws org.jasig.portal.PortalException, org.esupportail.portal.utils.channels.FrameWorkException
action
in class IntranetAction
org.esupportail.portal.utils.channels.FrameWorkException
org.jasig.portal.PortalException
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
- Un OutputStream vers le navigateur du client
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 levée
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |