def server_setup(control, err_mon, server, doc_factory)
for filter_info in @list
name = filter_info['filter']
args = filter_info['arguments']
path = filter_info['attach_path']
mask = filter_info['attach_mask']
host = filter_info['virtual_host']
begin
filter = doc_factory.filter_build(name, args)
if (host) then
host += ':' + server.port.to_s
server.virtual_attach(host, filter, path, mask)
else
server.attach(filter, path, mask)
end
rescue StandardError, ScriptError
err_mon.capture_filter_error($!, name, args, path, mask, host)
server.err("error: not attached #{name.inspect} filter: (#{$!.class}) #{$!}")
end
end
nil
end