當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。