@@ -0,0 +1,1066 @@
+package com.qiniu.storage;%0A%0Aimport com.qiniu.common.QiniuException;%0Aimport com.qiniu.util.StringUtils;%0A%0Aimport java.net.URL;%0A%0Apublic class DownloadUrl %7B%0A%0A    private boolean useHttps = false;%0A%0A    private String domain;%0A%0A    private String key;%0A%0A    private Long deadline;%0A%0A    private String token;%0A%0A    private String attname;%0A%0A    private String fop;%0A%0A    public URL build() throws QiniuException %7B%0A        Api.Request request = new Api.Request(getUrlPrefix());%0A        request.addPathSegment(key);%0A%0A        if (StringUtils.isNullOrEmpty(attname)) %7B%0A            request.addQueryPair(%22attname%22, attname);%0A        %7D%0A%0A        if (deadline != null) %7B%0A            request.addQueryPair(%22e%22, deadline.toString());%0A        %7D%0A%0A        if (StringUtils.isNullOrEmpty(token)) %7B%0A            request.addQueryPair(%22token%22, token);%0A        %7D%0A%0A        return request.getUrl();%0A    %7D%0A%0A    private String getUrlPrefix() throws QiniuException %7B%0A        if (useHttps) %7B%0A            return %22https://%22 + domain;%0A        %7D else %7B%0A            return %22http://%22 + domain;%0A        %7D%0A    %7D%0A%7D%0A

add download url