当前位置: 首页>>代码示例>>Java>>正文


Java MethodType类代码示例

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


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


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