@Documented @Target(value={PARAMETER,FIELD,METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface Attr
Identifies a POJO retrieved from the request attributes map.
Annotation that can be applied to a parameter of a
This is functionally equivalent to the following code...
| Modifier and Type | Optional Element and Description |
|---|---|
String |
name
Request attribute name.
|
Class<? extends HttpPartParser> |
parser
Specifies the
HttpPartParser class used for parsing strings to values. |
String |
value
A synonym for
name(). |
public abstract Class<? extends HttpPartParser> parser
HttpPartParser class used for parsing strings to values.
Overrides for this part the part parser defined on the REST resource which by default is OpenApiParser.
public abstract String name
The value should be either a valid attribute name, or
A blank value (the default) has the following behavior:
public abstract String value
name().
Allows you to use shortened notation if you're only specifying the name.
The following are completely equivalent ways of defining a header entry:
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.