Annotation Interface RestLink
Represents a Web link to be incorporated into the HTTP response.
Only the response of methods or classes annotated with
InjectRestLinks will include the "Link" headers.
The RestLink annotation can be used at method level.
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>Declares a link for the given type of resources.If not set, it will default to the method name.
-
Element Details
-
rel
String relIf not set, it will default to the method name.- Returns:
- the link relation.
- Default:
- ""
-
entityType
Class<?> entityTypeDeclares a link for the given type of resources. If not set, it will default to the returning type of the annotated method.- Returns:
- the type of returning method.
- Default:
- java.lang.Object.class
-