Skip to content

Commit

Permalink
Polish setAllowedHostnames
Browse files Browse the repository at this point in the history
Added JavaDoc to method, including @SInCE attribute

Issue gh-4310
  • Loading branch information
jzheaux committed Jun 3, 2020
1 parent e4e7363 commit 692ac21
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ public void setAllowUrlEncodedPercent(boolean allowUrlEncodedPercent) {
}
}

/**
* <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");
Expand Down

0 comments on commit 692ac21

Please sign in to comment.