Annotation Interface Attr
 Identifies a POJO retrieved from the request attributes map.
 Annotation that can be applied to a parameter of a 
Example:
   
This is functionally equivalent to the following code...
   
See Also:
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionRequest attribute name.Class<? extends HttpPartParser>Specifies theHttpPartParserclass used for parsing strings to values.A synonym forname().
- 
Element Details- 
parserClass<? extends HttpPartParser> parserSpecifies theHttpPartParserclass used for parsing strings to values.Overrides for this part the part parser defined on the REST resource which by default is OpenApiParser.- Returns:
- The annotation value.
 - Default:
- org.apache.juneau.httppart.HttpPartParser.Void.class
 
- 
nameRequest attribute name.The value should be either a valid attribute name, or "*" to represent multiple name/value pairsA blank value (the default) has the following behavior: - 
      If the data type is NameValuePairs ,Map , or a bean, then it's the equivalent to"*" which will cause the value to be serialized as name/value pairs.Examples:@RestPost ("/addPet" )public void addPet(@Attr JsonMapallAttributes ) {...}
 - Returns:
- The annotation value.
 - Default:
- ""
 
- 
      If the data type is 
- 
valueA synonym forname().Allows you to use shortened notation if you're only specifying the name. The following are completely equivalent ways of defining a header entry: public Order placeOrder(@Attr (name="api_key" ) StringapiKey ) {...}public Order placeOrder(@Attr ("api_key" ) StringapiKey ) {...}- Returns:
- The annotation value.
 - Default:
- ""
 
 
-