<chapter id="_QueryParam">
<title>@QueryParam</title>

<note>
   <para>
      RESTEasy <link linkend="_NewParam">supports <code>@QueryParam</code> annotations with no parameter name.</link>.
   </para>
</note>

<para>

The @QueryParam annotation allows mapping a URI query string parameter or url form encoded parameter
   to a method invocation.
</para>
<para>

GET /books?num=5
</para>
<para>

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

Since RESTEasy is built on top of a Servlet, it does not distinguish between URI query strings or
   url form encoded parameters. Like PathParam, the parameter type can be a String, primitive, or
   class that has a String constructor or static valueOf() method.
</para>
<para>

</para>
<para>


</para>
</chapter>
