Polish setAllowedHostnames

Added JavaDoc to method, including @since attribute

Issue gh-4310
This commit is contained in:
Josh Cummings
2019-08-03 19:19:44 -06:00
parent e4e7363196
commit 692ac213f9

View File

@@ -237,6 +237,14 @@ public class StrictHttpFirewall implements HttpFirewall {
}
}
/**
* <p>
* Determines which hostnames should be allowed. The default is to allow any hostname.
* </p>
*
* @param allowedHostnames the set of allowed hostnames
* @since 4.2.17
*/
public void setAllowedHostnames(Collection<String> allowedHostnames) {
if (allowedHostnames == null) {
throw new IllegalArgumentException("allowedHostnames cannot be null");