public String getRemoteHost() { return request.getRemoteHost(); }
public boolean isRequestOnWhitelist(Request request) { String remoteHost = request.getRemoteHost(); return remoteHost.equals("localhost") || remoteHost.equals("127.0.0.1") || remoteHost.equals("0:0:0:0:0:0:0:1%0") || remoteHost.equals("0:0:0:0:0:0:0:1"); } }
pw.write("locale", request.getLocale()); pw.write("serverName", request.getServerName()); pw.write("remoteHost", request.getRemoteHost());