@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);
}
public abstract String value
Copyright © 2010-2015. All Rights Reserved.