public class AuDownloader extends Object implements org.zkoss.zk.au.http.AuExtension
Available in ZK EE
Filedownload| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
static String |
getDownloadURI(File file,
String contentType,
String data)
Returns the download URI of the specified file.
|
static String |
getDownloadURI(String path,
String contentType,
String data)
Returns the download URI of the specified file.
|
static String |
getDownloadURI(URL url,
String contentType,
String data)
Returns the download URI of the specified file.
|
void |
init(org.zkoss.zk.au.http.DHtmlUpdateServlet servlet) |
static void |
init(org.zkoss.zk.ui.WebApp wapp)
Initializes the downloader.
|
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String pi) |
public static void init(org.zkoss.zk.ui.WebApp wapp)
throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void init(org.zkoss.zk.au.http.DHtmlUpdateServlet servlet)
init in interface org.zkoss.zk.au.http.AuExtensionpublic void destroy()
destroy in interface org.zkoss.zk.au.http.AuExtensionpublic static String getDownloadURI(File file, String contentType, String data)
public static String getDownloadURI(URL url, String contentType, String data)
public static String getDownloadURI(String path, String contentType, String data)
path - the path to access the resource of the Web application.
In other words, it is URI of ServletContext.
Since 3.6.1: if the path is relative, Desktop.getCurrentDirectory() is assumed.public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String pi)
throws javax.servlet.ServletException,
IOException
service in interface org.zkoss.zk.au.http.AuExtensionjavax.servlet.ServletExceptionIOExceptionCopyright © 2026. All rights reserved.