类 ImageXServiceImpl
java.lang.Object
com.bytedanceapi.service.BaseServiceImpl
com.bytedanceapi.service.imagex.impl.ImageXServiceImpl
- 所有已实现的接口:
IBaseService,IImageXService
public class ImageXServiceImpl extends BaseServiceImpl implements IImageXService
-
字段概要
-
方法概要
修饰符和类型 方法 说明 ApplyUploadResponseapplyImageUpload(ApplyUploadRequest applyUploadRequest)Apply upload image.CommitUploadResponsecommitImageUpload(CommitUploadRequest commitUploadRequest)Commit upload image.static IImageXServicegetInstance()static IImageXServicegetInstance(String region)SecurityToken2getUploadSts2(List<String> serviceIds)Get image upload sts2 auth with default expire time (1 hour).SecurityToken2getUploadSts2WithExpire(List<String> serviceIds, long expire)Get image upload sts2 auth.StringgetUploadToken(Map<String,String> params)Get image upload token.CommitUploadResponseuploadImages(ApplyUploadRequest request, List<byte[]> imageDatas)Upload image data.从类继承的方法 com.bytedanceapi.service.BaseServiceImpl
getAccessKey, getApiInfoList, getHttpClient, getISigner, getSecretKey, getServiceInfo, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.bytedanceapi.service.IBaseService
getAccessKey, getSecretKey, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2
-
方法详细资料
-
getInstance
-
getInstance
- 抛出:
Exception
-
applyImageUpload
public ApplyUploadResponse applyImageUpload(ApplyUploadRequest applyUploadRequest) throws Exception从接口复制的说明:IImageXServiceApply upload image.- 指定者:
applyImageUpload在接口中IImageXService- 参数:
applyUploadRequest- the apply upload request- 返回:
- the apply upload response
- 抛出:
Exception- the exception
-
commitImageUpload
public CommitUploadResponse commitImageUpload(CommitUploadRequest commitUploadRequest) throws Exception从接口复制的说明:IImageXServiceCommit upload image.- 指定者:
commitImageUpload在接口中IImageXService- 参数:
commitUploadRequest- the commit upload request- 返回:
- the commit upload response
- 抛出:
Exception- the exception
-
uploadImages
public CommitUploadResponse uploadImages(ApplyUploadRequest request, List<byte[]> imageDatas) throws Exception从接口复制的说明:IImageXServiceUpload image data.- 指定者:
uploadImages在接口中IImageXService- 参数:
request- the apply upload requestimageDatas- image data array- 返回:
- the commit upload response
- 抛出:
Exception- the exception
-
getUploadToken
从接口复制的说明:IImageXServiceGet image upload token.- 指定者:
getUploadToken在接口中IImageXService- 参数:
params- the params- 返回:
- the upload token
- 抛出:
Exception- the exception
-
getUploadSts2
从接口复制的说明:IImageXServiceGet image upload sts2 auth with default expire time (1 hour).- 指定者:
getUploadSts2在接口中IImageXService- 参数:
serviceIds- service id list allowed to upload image to- 返回:
- the upload sts2 auth
- 抛出:
Exception- the exception
-
getUploadSts2WithExpire
public SecurityToken2 getUploadSts2WithExpire(List<String> serviceIds, long expire) throws Exception从接口复制的说明:IImageXServiceGet image upload sts2 auth.- 指定者:
getUploadSts2WithExpire在接口中IImageXService- 参数:
serviceIds- service id list allowed to upload image toexpire- expire time in milliseconds- 返回:
- the upload sts2 auth
- 抛出:
Exception- the exception
-