01: /* AuDownload.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Mon Apr 16 14:37:20 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.zk.au.out;
20:
21: import org.zkoss.zk.au.AuResponse;
22:
23: /**
24: * A response to ask the client to download the specified URI.
25: *
26: * <p>data[0]: the URL to download the file from.
27: *
28: * @author tomyeh
29: * @since 3.0.0
30: */
31: public class AuDownload extends AuResponse {
32: /**
33: * @param url the URI of the file to download, never null.
34: */
35: public AuDownload(String url) {
36: super ("download", new String[] { url });
37: }
38: }
|