org.androidannotations.annotations.rest
Annotation Type Options


@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Options

Use on methods in Rest annotated class to add a new rest service of type OPTIONS.

This annotation as the same constraints as Get but it MUST return a Set of HttpMethod

Example :
 @Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class)
 public interface MyRestClient {
 
        @Options("/events")
        Set<HttpMethod> getEventOptions();
 
        @Options("/events/{year}/{location}")
        Set<HttpMethod> getEventOptions(String location, int year);
 }
 

See Also:
Rest, Get, Post, Put, Delete, Head

Required Element Summary
 String value
           
 

Element Detail

value

public abstract String value


Copyright © 2010-2014. All Rights Reserved.