File: _DefaultValue.xml

package info (click to toggle)
resteasy 3.6.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 34,612 kB
  • sloc: java: 265,492; xml: 27,855; javascript: 405; jsp: 166; python: 101; sh: 15; sql: 3; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<chapter id="_DefaultValue">
<title>@DefaultValue</title>

<para>

@DefaultValue is a parameter annotation that can be combined with any of the other @*Param annotations to define a default value when the HTTP request item does not exist.
</para>
<para>

<programlisting>
@GET
public String getBooks(@QueryParam("num") @DefaultValue("10") int num) {...}
</programlisting>
</para>
<para>

</para>
<para>


</para>
</chapter>