|
|
|
@ -18,21 +18,22 @@ import java.util.Date;
|
|
|
|
|
|
|
|
|
|
public class OssDownloadHttpHandler extends BaseHttpHandler { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public RequestMethod getMethod() { |
|
|
|
|
return RequestMethod.POST; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getPath() { |
|
|
|
|
return "/oss/download"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isPublic() { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void handle(HttpServletRequest req, HttpServletResponse res) throws Exception { |
|
|
|
|
String bucket = NetworkKit.getHTTPRequestParameter(req, "bucket"); |
|
|
|
|
String directory = NetworkKit.getHTTPRequestParameter(req, "directory"); |
|
|
|
|