本文整理汇总了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;
示例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;
}
示例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;
示例4: removeGroup
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/groups/{id}")
Observable<Group> removeGroup(@Path("id") String id);
示例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;
示例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;
示例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);
示例8: removeAddress
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("user/addresses/{id}")
Call<Address> removeAddress(@Path("id") int addressId, @Query("token") String token);
示例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);
示例10: deleteTreatment
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("treatments/{id}")
Call<ResponseBody> deleteTreatment(@Header("api-secret") String secret, @Path("id") String id);
示例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);
示例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);
示例13: deleteThisThing
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/things/")
Response deleteThisThing(@Body MyObject theObject);
示例14: deleteIssue
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/issues/{id}.json")
public void deleteIssue(@Path("id") String id, Callback<IssueResponse> callback);
示例15: deleteContact
import retrofit.http.DELETE; //导入依赖的package包/类
@DELETE("/sdm/mensageiro/contato/{id}")
Call<Contact> deleteContact(@Path("id") String id);