public class AllowedHosts
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AddressMatcher> |
addressMatchers |
Constructor and Description |
---|
AllowedHosts(java.lang.String allowedHosts) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowed(AddressIdentifier.AddressType clientAddressType,
java.net.InetAddress clientAddress) |
boolean |
allowed(java.net.InetAddress clientAddress) |
java.lang.String |
getAllowedHosts() |
void |
setAllowedHosts(java.lang.String allowedHosts)
Sets the list of allowed hosts to
allowedHosts . |
protected final java.util.List<AddressMatcher> addressMatchers
public void setAllowedHosts(java.lang.String allowedHosts)
allowedHosts
. The new
list is in effect immediately after this method has finished.allowedHosts
- The new list of allowed hosts spublic boolean allowed(java.net.InetAddress clientAddress)
public boolean allowed(AddressIdentifier.AddressType clientAddressType, java.net.InetAddress clientAddress)
public java.lang.String getAllowedHosts()