Skip to content

Commit

Permalink
Define that FormParam values must be read from Form entity
Browse files Browse the repository at this point in the history
  • Loading branch information
chkal committed Nov 4, 2018
1 parent 16518e8 commit 9acd5dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions jaxrs-api/src/main/java/javax/ws/rs/FormParam.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
* </p>
*
* <p>
* If this annotation is used to bind form parameters, a JAX-RS implementation MUST use the entity provider API
* to create a {@link javax.ws.rs.core.Form} and derive the values from this instance. This implies,
* that {@link javax.ws.rs.core.Form} is the only allowed entity parameter type if there is at least one
* {@link FormParam} annotation for a request.
* </p>
*
* <p>
* Note that, whilst the annotation target permits use on fields and methods, this annotation is only required to be
* supported on resource method parameters.
* </p>
Expand Down

0 comments on commit 9acd5dc

Please sign in to comment.