|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zkmax.au.http.AuDownloader
public class AuDownloader
The AU processor to handle the resumable download.
Filedownload| Method Summary | |
|---|---|
static java.lang.String |
getDownloadURI(java.io.File file,
java.lang.String contentType,
java.lang.String data)
Returns the download URI of the specified file. |
static java.lang.String |
getDownloadURI(java.lang.String path,
java.lang.String contentType,
java.lang.String data)
Returns the download URI of the specified file. |
static java.lang.String |
getDownloadURI(java.net.URL url,
java.lang.String contentType,
java.lang.String data)
Returns the download URI of the specified file. |
static void |
init(WebApp wapp)
Initializes the downloader. |
void |
process(Session sess,
javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String pi)
Called to process the request if the session is available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init(WebApp wapp)
public static java.lang.String getDownloadURI(java.io.File file,
java.lang.String contentType,
java.lang.String data)
public static java.lang.String getDownloadURI(java.net.URL url,
java.lang.String contentType,
java.lang.String data)
public static java.lang.String getDownloadURI(java.lang.String path,
java.lang.String contentType,
java.lang.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 process(Session sess,
javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String pi)
throws javax.servlet.ServletException,
java.io.IOException
AuProcessor
process in interface AuProcessorsess - the session, or null if the session is not available.ctx - the servlet context (never null).request - the request (never null).response - the response (never null).pi - the path info. It includes the prefix when the Au processor
is associated (see DHtmlUpdateServlet.addAuProcessor(org.zkoss.zk.ui.WebApp, java.lang.String, org.zkoss.zk.au.http.AuProcessor).
For example, if an AU processor is assoicated with "/upload", then
pi must start with "/upload". Note: it might end with other string
depending on the URI you generated to the client.
javax.servlet.ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||