public RhinoPlugin(PluginConfig config) throws UnknownHostException { int port = Integer.parseInt(config.getRequired("port")); String host = config.get("host"); InetAddress addr; if (host == null) addr = InetAddress.getByAddress(new byte[] {127, 0, 0, 1}); else addr = InetAddress.getByName(host); service = new RhinoServer(config.getFrontEnd(), addr, port); }
public SmtpGate(PluginConfig config) { frontEnd = config.getFrontEnd(); }