public class IPFilter extends Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
IPFilter.Authorized |
Modifier and Type | Field and Description |
---|---|
private ArrayList<IPFilter.Authorized> |
ipAlloweds |
static org.objectweb.util.monolog.api.Logger |
logger |
Constructor and Description |
---|
IPFilter(String IPAllowedList)
Creates list of IP allowed list from declaration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkIpAllowed(String addr)
Check if the addr is authorized (all local address is authorized).
|
public static org.objectweb.util.monolog.api.Logger logger
private ArrayList<IPFilter.Authorized> ipAlloweds
public IPFilter(String IPAllowedList)
public boolean checkIpAllowed(String addr)
addr
- The ip address to checkUnknownHostException
SocketException
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.