|
|
|
@ -50,16 +50,17 @@ public @interface CookieValue { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Whether the header is required. |
|
|
|
|
* <p>Default is <code>true</code>, leading to an exception thrown in case |
|
|
|
|
* of the header missing in the request. Switch this to <code>false</code> |
|
|
|
|
* if you prefer a <code>null</value> in case of the header missing. |
|
|
|
|
* <p>Default is <code>true</code>, leading to an exception being thrown |
|
|
|
|
* in case the header is missing in the request. Switch this to |
|
|
|
|
* <code>false</code> if you prefer a <code>null</value> in case of the |
|
|
|
|
* missing header. |
|
|
|
|
* <p>Alternatively, provide a {@link #defaultValue() defaultValue}, |
|
|
|
|
* which implicitly sets this flag to <code>false</code>. |
|
|
|
|
*/ |
|
|
|
|
boolean required() default true; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The default value to use as a fallback. Supplying a default value implicitely |
|
|
|
|
* The default value to use as a fallback. Supplying a default value implicitly |
|
|
|
|
* sets {@link #required()} to false. |
|
|
|
|
*/ |
|
|
|
|
String defaultValue() default ""; |
|
|
|
|