public class BannedIpList extends ServerConfigList<String,BannedIpEntry>
LOGGER
Constructor and Description |
---|
BannedIpList(File file) |
Modifier and Type | Method and Description |
---|---|
protected ServerConfigEntry<String> |
fromJson(JsonObject json) |
BannedIpEntry |
get(SocketAddress socketAddress) |
boolean |
isBanned(SocketAddress ip) |
boolean |
isBanned(String ip) |
private String |
stringifyAddress(SocketAddress socketAddress) |
public BannedIpList(File file)
protected ServerConfigEntry<String> fromJson(JsonObject json)
fromJson
in class ServerConfigList<String,BannedIpEntry>
public boolean isBanned(SocketAddress ip)
public boolean isBanned(String ip)
public BannedIpEntry get(SocketAddress socketAddress)
private String stringifyAddress(SocketAddress socketAddress)