@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Head
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
HttpHeaders
Example :@Rest(rootUrl = "http://myserver", converters = MappingJacksonHttpMessageConverter.class) public interface MyRestClient { @Head("/events") HttpHeaders getEventHeader(); @Head("/events/{year}/{location}") HttpHeaders getEventHeader2(String location, int year); }
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
Copyright © 2010-2014. All Rights Reserved.