Annotation Interface RequestAttributes


@Documented @Retention(RUNTIME) @Target(TYPE) @Inherited public @interface RequestAttributes
This lets you declare several attributes for a client class and have them always included. Example usage:

 @RequestAttributes({
     @RequestAttribute(name = "api-key", value = "my-key-value"),
     @RequestAttribute(name = "api-name", value = "my-api-name")
 })
 
Since:
1.0
Author:
Ahmed Lafta
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    This allows you to have multiple @RequestAttribute's set at the class level with Java and Groovy.
  • Element Details

    • value

      This allows you to have multiple @RequestAttribute's set at the class level with Java and Groovy. Example usage:
      
       @RequestAttributes({
           @RequestAttribute(name = "api-key", value = "my-key-value"),
           @RequestAttribute(name = "api-name", value = "my-api-name")
       })
       
      Returns:
      The attributes
      Default:
      {}