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


Java DELETE类代码示例

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


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

示例1: removeUserMetadata

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE(METADATA_BASE_PATH + "/{metadata_key}" + V1)
Response removeUserMetadata(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Path(USER_UUID_VARIABLE) UUID userUuid,
    @Path("metadata_key") String metadataKey
) throws HodErrorException;
 
开发者ID:hpe-idol,项目名称:java-hod-client,代码行数:8,代码来源:UserStoreUsersBackend.java

示例2: flatten

import retrofit.http.DELETE; //导入依赖的package包/类
public FlattenedOptions flatten() {
    FlattenedOptions flattenedOptions = new FlattenedOptions();
    Set<Method> methodSet = methodOptions.keySet();
    for (Method method : methodSet) {
        //add method to flattenedOptions
        String endpoint = "";
        if (method.getAnnotation(GET.class) != null)
            endpoint += method.getAnnotation(GET.class).value();
        if (method.getAnnotation(POST.class) != null)
            endpoint += method.getAnnotation(POST.class).value();
        if (method.getAnnotation(PUT.class) != null)
            endpoint += method.getAnnotation(PUT.class).value();
        if (method.getAnnotation(DELETE.class) != null)
            endpoint += method.getAnnotation(DELETE.class).value();
        if (method.getAnnotation(HEAD.class) != null)
            endpoint += method.getAnnotation(HEAD.class).value();

        flattenedOptions.addMethod(method, endpoint);
        //add fields to flattenedOptions
        methodOptions.get(method).addToFlattenedOptions(flattenedOptions);
    }

    log("done flattening, contains " + flattenedOptions.itemList.size() + " items");
    return flattenedOptions;
}
 
开发者ID:fdoyle,项目名称:mocktopus,代码行数:26,代码来源:Options.java

示例3: deleteList

import retrofit.http.DELETE; //导入依赖的package包/类
/**
 * <b>OAuth Required</b>
 *
 * <p> Remove a custom list and all items it contains.
 */
@DELETE("/users/{username}/lists/{id}")
Response deleteList(
        @Path("username") String username,
        @Path("id") String id
) throws OAuthUnauthorizedException;
 
开发者ID:archos-sa,项目名称:aos-MediaLib,代码行数:11,代码来源:Users.java

示例4: removeGroup

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/groups/{id}")
Observable<Group> removeGroup(@Path("id") String id);
 
开发者ID:jianliaoim,项目名称:talk-android,代码行数:3,代码来源:TalkApi.java

示例5: removeUser

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE(BASE_PATH + "/{group}/user/{user_uuid}" + V1)
Response removeUser(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Path("group") String group,
    @Path("user_uuid") String userUuid
) throws HodErrorException;
 
开发者ID:hpe-idol,项目名称:java-hod-client,代码行数:8,代码来源:GroupsBackend.java

示例6: unlink

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE(BASE_PATH + "/{parent_group_name}/link" + V1)
Response unlink(
    @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token,
    @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore,
    @Path("parent_group_name") String parent,
    @Query("child_group_name") String child
) throws HodErrorException;
 
开发者ID:hpe-idol,项目名称:java-hod-client,代码行数:8,代码来源:GroupsBackend.java

示例7: deleteEvent

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("calendars/{calendar_id}/events/{event_id}")
Observable<Response> deleteEvent(@Path("calendar_id") int calendarId, @Path("event_id") int eventId);
 
开发者ID:macoscope,项目名称:RoomBookerMVP,代码行数:3,代码来源:ApiService.java

示例8: removeAddress

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("user/addresses/{id}")
Call<Address> removeAddress(@Path("id") int addressId, @Query("token") String token);
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:3,代码来源:ApiService.java

示例9: removeProduct

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("orders/{orderId}/line_items/{id}")
Call<Order> removeProduct(@Path("orderId") String orderId, @Path("id") int id, @Query("token") String token);
 
开发者ID:vinsol-spree-contrib,项目名称:spree-android,代码行数:3,代码来源:ApiService.java

示例10: deleteTreatment

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("treatments/{id}")
Call<ResponseBody> deleteTreatment(@Header("api-secret") String secret, @Path("id") String id);
 
开发者ID:jamorham,项目名称:xDrip-plus,代码行数:3,代码来源:NightscoutUploader.java

示例11: deleteFromCollection

import retrofit.http.DELETE; //导入依赖的package包/类
@Headers("Accept: application/json")
@DELETE("/collections/{id}/uncollect")
Observable<Collect> deleteFromCollection(@Path("id") long id, @Query("post_id") long postId);
 
开发者ID:goodev,项目名称:materialup,代码行数:4,代码来源:ApiService.java

示例12: deleteComment

import retrofit.http.DELETE; //导入依赖的package包/类
@Headers("Accept: application/json")
@DELETE("/posts/{pid}/comments/{cid}")
Observable<Comment> deleteComment(@Path("pid") long pid, @Path("cid") long cid);
 
开发者ID:goodev,项目名称:materialup,代码行数:4,代码来源:ApiService.java

示例13: deleteThisThing

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/things/")
Response deleteThisThing(@Body MyObject theObject);
 
开发者ID:notsojug,项目名称:jug-material,代码行数:3,代码来源:RetrofitNonStandardVerbIT.java

示例14: deleteIssue

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/issues/{id}.json")
public void deleteIssue(@Path("id") String id, Callback<IssueResponse> callback);
 
开发者ID:easyredmine,项目名称:mobile_app_android,代码行数:3,代码来源:ApiDescription.java

示例15: deleteContact

import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/sdm/mensageiro/contato/{id}")
Call<Contact> deleteContact(@Path("id") String id);
 
开发者ID:EspecializacaoMobileIFSP,项目名称:Mensageiro,代码行数:3,代码来源:ContactsInterface.java


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