Beispiel #1
0
 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);
 }
Beispiel #2
0
 public SmtpGate(PluginConfig config) {
   frontEnd = config.getFrontEnd();
 }