org.apache.struts2.showcase.filedownload
Class FileDownloadAction

java.lang.Object
  extended by org.apache.struts2.showcase.filedownload.FileDownloadAction
All Implemented Interfaces:
Action

public class FileDownloadAction
extends java.lang.Object
implements Action

Demonstrates file resource download. Set filePath to the local file resource to download, relative to the application root ("/images/struts.gif").


Field Summary
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
FileDownloadAction()
           
 
Method Summary
 java.lang.String execute()
           
 java.io.InputStream getInputStream()
           
 void setInputPath(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloadAction

public FileDownloadAction()
Method Detail

setInputPath

public void setInputPath(java.lang.String value)

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface Action
Throws:
java.lang.Exception


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.