@HasQuery
Identical to {@link oaj.http.annotation.HasFormData @HasFormData}, but only checks the existing of the parameter in the URL string, not URL-encoded form posts.
Unlike {@link oaj.http.annotation.HasFormData @HasFormData}, using this annotation does not result in the servlet reading the contents
of URL-encoded form posts.
Therefore, this annotation can be used in conjunction with the {@link oaj.http.annotation.Body @Body} annotation or
{@link oajr.RestRequest#getBody()} method for application/x-www-form-urlencoded POST
calls.
This is functionally equivalent to the following code:
The parameter type must be either
The following table shows the behavioral differences between
Query content |
|
|
---|---|---|
?a=foo |
||
?a= |
||
?a |
||
?b=foo |