diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-10-06 23:55:41 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-10-06 23:55:41 +0200 |
commit | 8fcec55c82a1035dd17a59eb7bd1b1b65fb16f17 (patch) | |
tree | 4ea47e490d61b657601e338d70dbeb8977c2cdb8 /application | |
parent | 24c70d22397fad2c2d5d2e8b45d7da664283fd85 (diff) |
Return X-Vespa-Ignored-Fields if fields were ignored
Diffstat (limited to 'application')
-rw-r--r-- | application/src/main/java/com/yahoo/application/container/handler/Headers.java | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/application/src/main/java/com/yahoo/application/container/handler/Headers.java b/application/src/main/java/com/yahoo/application/container/handler/Headers.java index 03b31e38659..53ffe76c923 100644 --- a/application/src/main/java/com/yahoo/application/container/handler/Headers.java +++ b/application/src/main/java/com/yahoo/application/container/handler/Headers.java @@ -175,44 +175,44 @@ public class Headers implements Map<String, List<String>> { } /** - * <p>Removes the given value from the entry of the specified key.</p> + * Removes the given value from the entry of the specified key. * - * @param key The key of the entry to remove from. - * @param value The value to remove from the entry. - * @return True if the value was removed. + * @param key the key of the entry to remove from + * @param value the value to remove from the entry + * @return true if the value was removed */ public boolean remove(String key, String value) { return h.remove(key, value); } /** - * <p>Convenience method for retrieving the first value of a named header field. If the header is not set, or if the - * value list is empty, this method returns null.</p> + * Convenience method for retrieving the first value of a named header field. If the header is not set, or if the + * value list is empty, this method returns null. * - * @param key The key whose first value to return. - * @return The first value of the named header, or null. + * @param key the key whose first value to return. + * @return the first value of the named header, or null. */ public String getFirst(String key) { return h.getFirst(key); } /** - * <p>Convenience method for checking whether or not a named header field is <em>true</em>. To satisfy this, the + * Convenience method for checking whether a named header field is <em>true</em>. To satisfy this, the * header field needs to have at least 1 entry, and Boolean.valueOf() of all its values must parse as - * <em>true</em>.</p> + * <em>true</em>. * - * @param key The key whose values to parse as a boolean. - * @return The boolean value of the named header. + * @param key the key whose values to parse as a boolean + * @return the boolean value of the named header */ public boolean isTrue(String key) { return h.isTrue(key); } /** - * <p>Returns an unmodifiable list of all key-value pairs of this. This provides a flattened view on the content of - * this map.</p> + * Returns an unmodifiable list of all key-value pairs of this. This provides a flattened view on the content of + * this map. * - * @return The collection of entries. + * @return the collection of entries */ public List<Entry<String, String>> entries() { return h.entries(); |