* The parameter "URI" is used to determine the correct file service, the path
* and the file name. An optional file name can be precized to present a
* different file name as the one used to retrieve it to the end user.
* The parameter "URI" is used to determine the correct file service, the path
* and the file name. An optional file name can be precized to present a
* different file name as the one used to retrieve it to the end user.
* Various instances of this handler with different command ID might coexist in
* order to provide context specific download service.
* Various instances of this handler with different command ID might coexist in
* order to provide context specific download service.
*/
public class OpenFile extends AbstractHandler {
private final static Log log = LogFactory.getLog(OpenFile.class);
*/
public class OpenFile extends AbstractHandler {
private final static Log log = LogFactory.getLog(OpenFile.class);
String fileName = event.getParameter(PARAM_FILE_NAME);
String fileUri = event.getParameter(PARAM_FILE_URI);
String fileName = event.getParameter(PARAM_FILE_NAME);
String fileUri = event.getParameter(PARAM_FILE_URI);
if (fileUri == null || "".equals(fileUri.trim())
|| openFileServiceId == null
|| "".equals(openFileServiceId.trim()))
if (fileUri == null || "".equals(fileUri.trim())
|| openFileServiceId == null
|| "".equals(openFileServiceId.trim()))