• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java MethodType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.aliyuncs.http.MethodType的典型用法代码示例。如果您正苦于以下问题:Java MethodType类的具体用法?Java MethodType怎么用?Java MethodType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MethodType类属于com.aliyuncs.http包,在下文中一共展示了MethodType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ReactivatePhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ReactivatePhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setPhotoIds(ids);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ReactivatePhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:ReactivatePhotosRequest.java


示例2: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.AddAlbumPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.AddAlbumPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setAlbumId(id);
    request.setPhotoIds(photoIds);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("AddAlbumPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:AddAlbumPhotosRequest.java


示例3: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListAlbumsRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListAlbumsRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setDirection(direction);
    request.setSize(size);
    request.setCursor(cursor);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListAlbums");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:20,代码来源:ListAlbumsRequest.java


示例4: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.GetPhotosByMd5sRequest request = new com.aliyuncs.cloudphoto.model.v20170711.GetPhotosByMd5sRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setMd5s(md5s);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("GetPhotosByMd5s");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:GetPhotosByMd5sRequest.java


示例5: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListPhotoTagsRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListPhotoTagsRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setPhotoId(id);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListPhotoTags");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:GetPhotoTagsRequest.java


示例6: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.SetQuotaRequest request = new com.aliyuncs.cloudphoto.model.v20170711.SetQuotaRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setTotalQuota(total);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("SetQuota");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:SetQuotaRequest.java


示例7: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.CreateTransactionRequest request = new com.aliyuncs.cloudphoto.model.v20170711.CreateTransactionRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setSize(fileSize);
    request.setExt(ext);
    request.setForce(String.valueOf(force));
    request.setMd5(md5);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("CreateTransaction");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:20,代码来源:OpenTransactionRequest.java


示例8: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.GetPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.GetPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setPhotoIds(ids);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("GetPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:GetPhotosRequest.java


示例9: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListMomentsRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListMomentsRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setDirection(direction);
    request.setSize(size);
    request.setCursor(cursor);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListMoments");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:20,代码来源:ListMomentsRequest.java


示例10: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.RemoveAlbumPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.RemoveAlbumPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setAlbumId(id);
    request.setPhotoIds(photoIds);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("RemoveAlbumPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:RemoveAlbumPhotosRequest.java


示例11: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.DeleteAlbumsRequest request = new com.aliyuncs.cloudphoto.model.v20170711.DeleteAlbumsRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setAlbumIds(ids);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("DeleteAlbums");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:DeleteAlbumsRequest.java


示例12: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListMomentPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListMomentPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setMomentId(id);
    request.setDirection(direction);
    request.setSize(size);
    request.setCursor(cursor);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListMomentPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:21,代码来源:ListMomentPhotosRequest.java


示例13: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.CreatePhotoRequest request = new com.aliyuncs.cloudphoto.model.v20170711.CreatePhotoRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setFileId(fileId);
    request.setSessionId(sid);
    request.setUploadType(uploadType);
    request.setPhotoTitle(title);
    request.setRemark(remark);
    request.setShareExpireTime(shareExpireTime);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("CreatePhoto");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:22,代码来源:CreatePhotoRequest.java


示例14: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setDirection(direction);
    request.setSize(size);
    request.setCursor(cursor);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:20,代码来源:ListPhotosRequest.java


示例15: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.GetVideoCoverRequest request = new com.aliyuncs.cloudphoto.model.v20170711.GetVideoCoverRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setPhotoId(photoId);
    request.setZoomType(zoomType);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("GetVideoCover");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:GetVideoCoverRequest.java


示例16: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.ListTagPhotosRequest request = new com.aliyuncs.cloudphoto.model.v20170711.ListTagPhotosRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setTagId(id);
    request.setDirection(direction);
    request.setSize(size);
    request.setCursor(cursor);
    request.setState(state);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("ListTagPhotos");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:21,代码来源:ListTagPhotosRequest.java


示例17: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.GetThumbnailRequest request = new com.aliyuncs.cloudphoto.model.v20170711.GetThumbnailRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setPhotoId(photoId);
    request.setZoomType(zoomType);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("GetThumbnail");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:GetThumbnailRequest.java


示例18: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.RenameAlbumRequest request = new com.aliyuncs.cloudphoto.model.v20170711.RenameAlbumRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setAlbumId(id);
    request.setAlbumName(name);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("RenameAlbum");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:RenameAlbumRequest.java


示例19: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.SetAlbumCoverRequest request = new com.aliyuncs.cloudphoto.model.v20170711.SetAlbumCoverRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setAlbumId(id);
    request.setPhotoId(photoId);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("SetAlbumCover");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:18,代码来源:SetAlbumCoverRequest.java


示例20: build

import com.aliyuncs.http.MethodType; //导入依赖的package包/类
@Override
public RpcAcsRequest build() {
    com.aliyuncs.cloudphoto.model.v20170711.SetMeRequest request = new com.aliyuncs.cloudphoto.model.v20170711.SetMeRequest();
    request.setProtocol(ProtocolType.HTTPS); //指定访问协议
    request.setAcceptFormat(FormatType.JSON); //指定api返回格式
    request.setMethod(MethodType.POST); //指定请求方法
    request.setRegionId(REGION_CN);//指定要访问的Region,仅对当前请求生效,不改变client的默认设置。
    request.setFaceId(id);
    if (!stsToken.isEmpty())
        request.setSecurityToken(stsToken);
    else if (!libraryId.isEmpty())
        request.setLibraryId(libraryId);
    request.setStoreName(storeName);
    request.setActionName("SetMe");
    return request;
}
 
开发者ID:aliyun,项目名称:aliyun-cloudphotos-android-demo,代码行数:17,代码来源:FaceSetMeRequest.java



注:本文中的com.aliyuncs.http.MethodType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TContains类代码示例发布时间:2022-05-22
下一篇:
Java WXModuleManager类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap