|
331 | 331 |
|
332 | 332 | /** |
333 | 333 | * The consumable media types of the mapped request, narrowing the primary mapping. |
334 | | - * <p>The format is a sequence of media types ("text/plain", "application/*), |
| 334 | + * <p>The format is a single media type or a sequence of media types, |
335 | 335 | * with a request only mapped if the {@code Content-Type} matches one of these media types. |
| 336 | + * Examples: |
| 337 | + * <pre> |
| 338 | + * consumes = "text/plain" |
| 339 | + * consumes = {"text/plain", "application/*"} |
| 340 | + * </pre> |
336 | 341 | * Expressions can be negated by using the "!" operator, as in "!text/plain", which matches |
337 | 342 | * all requests with a {@code Content-Type} other than "text/plain". |
338 | 343 | * <p><b>Supported at the type level as well as at the method level!</b> |
|
345 | 350 |
|
346 | 351 | /** |
347 | 352 | * The producible media types of the mapped request, narrowing the primary mapping. |
348 | | - * <p>The format is a sequence of media types ("text/plain", "application/*), |
| 353 | + * <p>The format is a single media type or a sequence of media types, |
349 | 354 | * with a request only mapped if the {@code Accept} matches one of these media types. |
| 355 | + * Examples: |
| 356 | + * <pre> |
| 357 | + * produces = "text/plain" |
| 358 | + * produces = {"text/plain", "application/*"} |
| 359 | + * </pre> |
350 | 360 | * Expressions can be negated by using the "!" operator, as in "!text/plain", which matches |
351 | 361 | * all requests with a {@code Accept} other than "text/plain". |
352 | 362 | * <p><b>Supported at the type level as well as at the method level!</b> |
|
0 commit comments