public class ImageXServiceImpl extends BaseServiceImpl implements IImageXService
apiInfoList, serviceInfogetAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSignUrl, json, post, put, putData, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessKey, getRegion, getSecretKey, getSignUrl, json, post, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSocketTimeout, signSts2public static IImageXService getInstance()
public static IImageXService getInstance(String region) throws Exception
Exceptionpublic ApplyImageUploadResponse applyImageUpload(ApplyImageUploadRequest req) throws Exception
IImageXServiceapplyImageUpload 在接口中 IImageXServicereq - the apply upload requestException - the exceptionpublic CommitImageUploadResponse commitImageUpload(CommitImageUploadRequest req) throws Exception
IImageXServicecommitImageUpload 在接口中 IImageXServicereq - the commit upload requestException - the exceptionpublic CommitImageUploadResponse uploadImages(ApplyImageUploadRequest request, List<byte[]> imageDatas) throws Exception
IImageXServiceuploadImages 在接口中 IImageXServicerequest - the apply upload requestimageDatas - image data arrayException - the exceptionpublic String getUploadToken(Map<String,String> params) throws Exception
IImageXServicegetUploadToken 在接口中 IImageXServiceparams - the paramsException - the exceptionpublic SecurityToken2 getUploadSts2(List<String> serviceIds) throws Exception
IImageXServicegetUploadSts2 在接口中 IImageXServiceserviceIds - service id list allowed to upload image toException - the exceptionpublic SecurityToken2 getUploadSts2WithExpire(List<String> serviceIds, long expire) throws Exception
IImageXServicegetUploadSts2WithExpire 在接口中 IImageXServiceserviceIds - service id list allowed to upload image toexpire - expire time in millisecondsException - the exceptionpublic SecurityToken2 getUploadSts2WithKeyPtn(List<String> serviceIds, long expire, String keyPtn) throws Exception
IImageXServicegetUploadSts2WithKeyPtn 在接口中 IImageXServiceserviceIds - service id list allowed to upload image toexpire - expire time in millisecondskeyPtn - upload store key pattern, * for no restriction. default to empty.Exception - the exceptionpublic DeleteImageResp deleteImages(DeleteImageReq req) throws Exception
IImageXServicedeleteImages 在接口中 IImageXServicereq - delete image reqException - the exceptionpublic UpdateImageFilesResponse updateImageUrls(UpdateImageFilesRequest req) throws Exception
IImageXServiceupdateImageUrls 在接口中 IImageXServicereq - update image urls reqException - the exceptionpublic CommonResponse getImageX(String action, Map<String,String> param) throws Exception
IImageXServicegetImageX 在接口中 IImageXServiceaction - api action nameparam - api query paramException - the exceptionpublic CommonResponse postImageX(String action, Map<String,String> param, Object req) throws Exception
IImageXServicepostImageX 在接口中 IImageXServiceaction - api action nameparam - api query paramreq - api json paramException - the exceptionpublic GetImageOCRResponse getImageOCR(Map<String,String> param) throws Exception
IImageXServicegetImageOCR 在接口中 IImageXServiceparam - api query paramException - the exceptionpublic EmbedImageHmResponse embedImageHm(EmbedImageHmRequest req) throws Exception
IImageXServiceembedImageHm 在接口中 IImageXServicereq - embed image hm requestException - the exceptionpublic ExtractImageHmResponse extractImageHm(ExtractImageHmRequest req) throws Exception
IImageXServiceextractImageHm 在接口中 IImageXServicereq - extract hidden mark from imageException - the exceptionCopyright © 2021. All rights reserved.