public class FileDownloadCGI extends Object implements CgiHttpResourceInterface
FileDownloadCGI
class causes a file to be downloaded
in the browser when called. The URI parameter after the resource should
be an URLEncoded file name.DirectoryListingCGI
Constructor and Description |
---|
FileDownloadCGI() |
Modifier and Type | Method and Description |
---|---|
HttpResource |
performAction(HttpSession session)
The root directory in "server.ini" in the [FileDownloadCGI] section
is located from the resource name "/download.cgi".
|
public HttpResource performAction(HttpSession session) throws IOException
The root directory in "server.ini" in the [FileDownloadCGI] section is located from the resource name "/download.cgi". The resource name must be specified as e.g. "/download.cgi=htdocs/info".
performAction
in interface CgiHttpResourceInterface
IOException
- for IO errors.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.