public class DefaultAliYunOssServiceImpl extends Object implements AliYunOssService
该类为 AliYunOssService 默认实现
| 构造器和说明 |
|---|
DefaultAliYunOssServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
deleteObject(Collection<String> ossFilePaths)
删除文件
|
List<String> |
deleteObject(Collection<String> ossFilePaths,
boolean quiet)
删除文件
|
void |
deleteObject(String ossFilePath)
删除文件
|
File |
downloadToFile(String ossFilePath)
下载文件至 File 对象
|
File |
downloadToFile(String ossFilePath,
File file)
下载文件至 File 对象
|
File |
downloadToFile(String ossFilePath,
String fileName)
下载文件至 File 对象
|
void |
downloadToResponse(String ossFilePath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载文件至 HttpServletResponse
|
void |
downloadToResponse(String ossFilePath,
String fileName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
下载文件至 HttpServletResponse
|
String |
uploadByFile(File absoluteFilePath,
String newFileName,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
String |
uploadByFile(File absoluteFilePath,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByFile(LinkedList<File> absoluteFilePaths,
LinkedList<String> newFileNames,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByFile(List<File> absoluteFilePaths,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByMultipart(LinkedList<org.springframework.web.multipart.MultipartFile> uploadFiles,
LinkedList<String> newFileNames,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByMultipart(List<org.springframework.web.multipart.MultipartFile> uploadFiles,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
String |
uploadByMultipart(org.springframework.web.multipart.MultipartFile uploadFile,
String newFileName,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
String |
uploadByMultipart(org.springframework.web.multipart.MultipartFile uploadFile,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByPath(LinkedList<String> absoluteFilePaths,
LinkedList<String> newFileNames,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
List<String> |
uploadByPath(List<String> absoluteFilePaths,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
String |
uploadByPath(String absoluteFilePath,
String newFileName,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
String |
uploadByPath(String absoluteFilePath,
UploadTypeEnum uploadTypeEnum,
String... pathOfBizName)
上传文件
|
public String uploadByMultipart(org.springframework.web.multipart.MultipartFile uploadFile, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException, IOException
AliYunOssServiceuploadByMultipart 在接口中 AliYunOssServiceuploadFile - 源文件对象uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常IOException - 获取文件流异常public String uploadByMultipart(org.springframework.web.multipart.MultipartFile uploadFile, String newFileName, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException, IOException
AliYunOssServiceuploadByMultipart 在接口中 AliYunOssServiceuploadFile - 源文件对象newFileName - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常IOException - 获取文件流异常public List<String> uploadByMultipart(List<org.springframework.web.multipart.MultipartFile> uploadFiles, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException, IOException
AliYunOssServiceuploadByMultipart 在接口中 AliYunOssServiceuploadFiles - 源文件对象uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常IOException - 获取文件流异常public List<String> uploadByMultipart(LinkedList<org.springframework.web.multipart.MultipartFile> uploadFiles, LinkedList<String> newFileNames, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException, IOException
AliYunOssServiceuploadByMultipart 在接口中 AliYunOssServiceuploadFiles - 源文件对象newFileNames - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常IOException - 获取文件流异常public String uploadByPath(String absoluteFilePath, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByPath 在接口中 AliYunOssServiceabsoluteFilePath - 源文件绝对路径uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public String uploadByPath(String absoluteFilePath, String newFileName, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByPath 在接口中 AliYunOssServiceabsoluteFilePath - 源文件绝对路径newFileName - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public List<String> uploadByPath(List<String> absoluteFilePaths, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByPath 在接口中 AliYunOssServiceabsoluteFilePaths - 源文件绝对路径集合uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public List<String> uploadByPath(LinkedList<String> absoluteFilePaths, LinkedList<String> newFileNames, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByPath 在接口中 AliYunOssServiceabsoluteFilePaths - 源文件绝对路径集合newFileNames - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public String uploadByFile(File absoluteFilePath, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByFile 在接口中 AliYunOssServiceabsoluteFilePath - 源文件对象uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public String uploadByFile(File absoluteFilePath, String newFileName, UploadTypeEnum uploadTypeEnum, String... pathOfBizName) throws AliYunOssUploadException
AliYunOssServiceuploadByFile 在接口中 AliYunOssServiceabsoluteFilePath - 源文件对象newFileName - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径AliYunOssUploadException - 阿里云对象存储上传异常public List<String> uploadByFile(List<File> absoluteFilePaths, UploadTypeEnum uploadTypeEnum, String... pathOfBizName)
AliYunOssServiceuploadByFile 在接口中 AliYunOssServiceabsoluteFilePaths - 源文件对象uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径public List<String> uploadByFile(LinkedList<File> absoluteFilePaths, LinkedList<String> newFileNames, UploadTypeEnum uploadTypeEnum, String... pathOfBizName)
AliYunOssServiceuploadByFile 在接口中 AliYunOssServiceabsoluteFilePaths - 源文件对象newFileNames - 新文件名uploadTypeEnum - 上传文件类型pathOfBizName - 上传文件路径|业务模块路径public void downloadToResponse(String ossFilePath, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
AliYunOssServicedownloadToResponse 在接口中 AliYunOssServiceossFilePath - OSS文件路径request - HttpServletRequestresponse - HttpServletResponseIOException - 获取文件流异常public void downloadToResponse(String ossFilePath, @Nullable String fileName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
AliYunOssServicedownloadToResponse 在接口中 AliYunOssServiceossFilePath - OSS文件路径fileName - 新文件名称, 为空时则为OSS文件名request - HttpServletRequestresponse - HttpServletResponseIOException - 获取文件流异常public File downloadToFile(String ossFilePath) throws AliYunOssConfigException
AliYunOssServicedownloadToFile 在接口中 AliYunOssServiceossFilePath - OSS文件路径AliYunOssConfigExceptionpublic File downloadToFile(String ossFilePath, @Nullable String fileName) throws AliYunOssConfigException
AliYunOssServicedownloadToFile 在接口中 AliYunOssServiceossFilePath - OSS文件路径fileName - 新文件名称, 为空时则为OSS文件名AliYunOssConfigExceptionpublic File downloadToFile(String ossFilePath, @Nullable File file) throws AliYunOssConfigException
AliYunOssServicedownloadToFile 在接口中 AliYunOssServiceossFilePath - OSS文件路径file - 新文件对象, 为空时则文件名为OSS文件名AliYunOssConfigExceptionpublic void deleteObject(String ossFilePath) throws AliYunOssConfigException
AliYunOssServicedeleteObject 在接口中 AliYunOssServiceossFilePath - OSS文件路径AliYunOssConfigExceptionpublic List<String> deleteObject(Collection<String> ossFilePaths) throws AliYunOssConfigException
AliYunOssServicedeleteObject 在接口中 AliYunOssServiceossFilePaths - OSS文件路径AliYunOssConfigExceptionpublic List<String> deleteObject(Collection<String> ossFilePaths, boolean quiet) throws AliYunOssConfigException
AliYunOssServicedeleteObject 在接口中 AliYunOssServiceossFilePaths - OSS文件路径quiet - 返回模式
[default: false-详细模式, {true: 简单模式(删除失败的文件路径集合), false: 详细模式(删除成功的文件路径集合)}]quiet 形参注释AliYunOssConfigExceptionCopyright © 2021 HaiChuang Inc.. All rights reserved.