}
void configureRemoteHostFilterValve(String allow, String deny) {
RemoteHostValve remoteHostValve = null;
if (allow != null || deny != null) {
remoteHostValve = new RemoteHostValve();
}
if (allow != null) {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, ALLOW_ACCESS, new Object[]{getID(), allow});
}
remoteHostValve.setAllow(allow);
}
if (deny != null) {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, DENY_ACCESS, new Object[]{getID(), deny});
}
remoteHostValve.setDeny(deny);
}
if (remoteHostValve != null) {
// Remove existing RemoteHostValve (if any), in case of a reconfig
GlassFishValve[] valves = getValves();
for (int i=0; valves!=null && i<valves.length; i++) {