Annotation Type RestLink

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Class<?> entityType
      Declares a link for the given type of resources.
      String rel
      If not set, it will default to the method name.
    • Element Detail

      • rel

        String rel
        If not set, it will default to the method name.
        Returns:
        the link relation.
        Default:
        ""
      • entityType

        Class<?> entityType
        Declares 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