|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2018 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
36 | 36 |
|
37 | 37 | /**
|
38 | 38 | * Factory to create a {@code ContentNegotiationManager} and configure it with
|
39 |
| - * one or more {@link ContentNegotiationStrategy} instances. |
| 39 | + * {@link ContentNegotiationStrategy} instances. |
40 | 40 | *
|
41 |
| - * <p>As of 5.0 you can set the exact strategies to use via |
42 |
| - * {@link #setStrategies(List)}. |
43 |
| - * |
44 |
| - * <p>As an alternative you can also rely on the set of defaults described below |
45 |
| - * which can be turned on or off or customized through the methods of this |
46 |
| - * builder: |
| 41 | + * <p>This factory offers properties that in turn result in configuring the |
| 42 | + * underlying strategies. The table below shows the property names, their |
| 43 | + * default settings, as well as the strategies that they help to configure: |
47 | 44 | *
|
48 | 45 | * <table>
|
49 | 46 | * <tr>
|
50 | 47 | * <th>Property Setter</th>
|
| 48 | + * <th>Default Value</th> |
51 | 49 | * <th>Underlying Strategy</th>
|
52 |
| - * <th>Default Setting</th> |
| 50 | + * <th>Enabled Or Not</th> |
53 | 51 | * </tr>
|
54 | 52 | * <tr>
|
55 |
| - * <td>{@link #setFavorPathExtension}</td> |
56 |
| - * <td>{@link PathExtensionContentNegotiationStrategy Path Extension strategy}</td> |
57 |
| - * <td>On</td> |
| 53 | + * <td>{@link #setFavorPathExtension favorPathExtension}</td> |
| 54 | + * <td>true</td> |
| 55 | + * <td>{@link PathExtensionContentNegotiationStrategy}</td> |
| 56 | + * <td>Enabled</td> |
58 | 57 | * </tr>
|
59 | 58 | * <tr>
|
60 | 59 | * <td>{@link #setFavorParameter favorParameter}</td>
|
61 |
| - * <td>{@link ParameterContentNegotiationStrategy Parameter strategy}</td> |
| 60 | + * <td>false</td> |
| 61 | + * <td>{@link ParameterContentNegotiationStrategy}</td> |
62 | 62 | * <td>Off</td>
|
63 | 63 | * </tr>
|
64 | 64 | * <tr>
|
65 | 65 | * <td>{@link #setIgnoreAcceptHeader ignoreAcceptHeader}</td>
|
66 |
| - * <td>{@link HeaderContentNegotiationStrategy Header strategy}</td> |
67 |
| - * <td>On</td> |
| 66 | + * <td>false</td> |
| 67 | + * <td>{@link HeaderContentNegotiationStrategy}</td> |
| 68 | + * <td>Enabled</td> |
68 | 69 | * </tr>
|
69 | 70 | * <tr>
|
70 | 71 | * <td>{@link #setDefaultContentType defaultContentType}</td>
|
71 |
| - * <td>{@link FixedContentNegotiationStrategy Fixed content strategy}</td> |
72 |
| - * <td>Not set</td> |
| 72 | + * <td>null</td> |
| 73 | + * <td>{@link FixedContentNegotiationStrategy}</td> |
| 74 | + * <td>Off</td> |
73 | 75 | * </tr>
|
74 | 76 | * <tr>
|
75 | 77 | * <td>{@link #setDefaultContentTypeStrategy defaultContentTypeStrategy}</td>
|
| 78 | + * <td>null</td> |
76 | 79 | * <td>{@link ContentNegotiationStrategy}</td>
|
77 |
| - * <td>Not set</td> |
| 80 | + * <td>Off</td> |
78 | 81 | * </tr>
|
79 | 82 | * </table>
|
80 | 83 | *
|
81 |
| - * <strong>Note:</strong> if you must use URL-based content type resolution, |
| 84 | + * <p>As of 5.0 you can set the exact strategies to use via |
| 85 | + * {@link #setStrategies(List)}. |
| 86 | + * |
| 87 | + * <p><strong>Note:</strong> if you must use URL-based content type resolution, |
82 | 88 | * the use of a query parameter is simpler and preferable to the use of a path
|
83 | 89 | * extension since the latter can cause issues with URI variables, path
|
84 | 90 | * parameters, and URI decoding. Consider setting {@link #setFavorPathExtension}
|
|
0 commit comments