程序包 cn.zhxu.toys.oss
类 AbstractOssManager
java.lang.Object
cn.zhxu.toys.oss.AbstractOssManager
- 所有已实现的接口:
OssManager
- 直接已知子类:
AliyunOssManager,HuaweiOssManager
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract StringgetBaseAccessUrl(String protocol, String host) protected Stringprotected StringgetContentType(String fileExtension) protected StringgetFileExtension(String fileName) protected StringresolveFileAccessUrl(String fileKey) protected StringresolveFileKey(String fileAccessUrl) voidsetEndpoint(String endpoint) voidsetMaxSize(Long maxSize) protected StringtoExtension(String contentType) 上传文件upload(String key, String contentType, InputStream inputStream) 上传文件upload(String fileName, String key, String contentType, InputStream inputStream) 上传文件(指定文件名)abstract String从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.zhxu.toys.oss.OssManager
access, delete
-
字段详细资料
-
endpoint
-
maxSize
-
-
构造器详细资料
-
AbstractOssManager
public AbstractOssManager()
-
-
方法详细资料
-
upload
从接口复制的说明:OssManager上传文件- 指定者:
upload在接口中OssManager- 参数:
key- 键file- 文件- 返回:
- 文件访问路径
-
upload
从接口复制的说明:OssManager上传文件- 指定者:
upload在接口中OssManager- 参数:
key- 键contentType- 类型inputStream- 输入流- 返回:
- 文件访问路径
-
upload
从接口复制的说明:OssManager上传文件(指定文件名)- 指定者:
upload在接口中OssManager- 参数:
fileName- 文件名key- 键contentType- 类型inputStream- 输入流- 返回:
- 文件访问路径
-
upload
-
resolveFileAccessUrl
-
resolveFileKey
-
getBaseUrl
-
getBaseAccessUrl
-
getContentType
-
toExtension
-
getFileExtension
-
getEndpoint
-
setEndpoint
-
getMaxSize
-
setMaxSize
-