lumis.portal.file
Class FileDownloadControllerHtml

Package class diagram package FileDownloadControllerHtml
java.lang.Object
  extended by lumis.portal.controller.ControllerHtml
      extended by lumis.portal.file.FileDownloadControllerHtml

public class FileDownloadControllerHtml
extends ControllerHtml

Streams the download of a file stored by the IFileManager.

Since:
4.0.0

Field Summary
static String FILEID_PARAMETER
           
static String INLINE_PARAMETER
           
 
Fields inherited from class lumis.portal.controller.ControllerHtml
out, request, response, sessionConfig, userConfig
 
Constructor Summary
FileDownloadControllerHtml(HttpServletRequest request, HttpServletResponse response)
           
 
Method Summary
static ServiceContainerUrl getFileDownloadUrl(String fileId)
          Returns the URL for downloading the file with the given id.
static ServiceContainerUrl getFileDownloadUrl(String fileId, boolean inline)
          Returns the URL for downloading the file with the given id.
 void handleRequest()
           
 
Methods inherited from class lumis.portal.controller.ControllerHtml
deleteCookie, getCookie, getRequestMode, getSessionConfig, loadUserInfo, setCookie
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILEID_PARAMETER

public static final String FILEID_PARAMETER
See Also:
Constant Field Values

INLINE_PARAMETER

public static final String INLINE_PARAMETER
See Also:
Constant Field Values
Constructor Detail

FileDownloadControllerHtml

public FileDownloadControllerHtml(HttpServletRequest request,
                                  HttpServletResponse response)
                           throws PortalException
Throws:
PortalException
Method Detail

handleRequest

public void handleRequest()
                   throws PortalException
Throws:
PortalException

getFileDownloadUrl

public static ServiceContainerUrl getFileDownloadUrl(String fileId)
Returns the URL for downloading the file with the given id.

Parameters:
fileId - the id of the file.
Returns:
the URL for downloading the file.

getFileDownloadUrl

public static ServiceContainerUrl getFileDownloadUrl(String fileId,
                                                     boolean inline)
Returns the URL for downloading the file with the given id.

Parameters:
fileId - the id of the file.
Returns:
the URL for downloading the file.


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.