Examples of SocketListener


Examples of org.mortbay.http.SocketListener

            System.out.printf("Starting Jetty instance on port %d (%s mapped to %s)\n", port,
                    contextPath, webappPath);

            Server server = new Server();

            SocketListener socketListener = new SocketListener();
            socketListener.setPort(port);
            server.addListener(socketListener);

            if (keystoreFile.exists())
            {
                SunJsseListener secureListener = new SunJsseListener();
View Full Code Here

Examples of org.mortbay.http.SocketListener

      // Print out usage if we get to here.
      printUsageAndExit();
    }

    org.mortbay.jetty.Server webServer = new org.mortbay.jetty.Server();
    SocketListener listener = new SocketListener();
    listener.setPort(port);
    listener.setHost(bindAddress);
    webServer.addListener(listener);
    webServer.addWebApplication("/api", InfoServer.getWebAppDir("rest"));
    webServer.start();
  }
View Full Code Here

Examples of org.openqa.jetty.http.SocketListener

        httpContext.setContextPath("/");
        ProxyHandler proxy = new ProxyHandler(true, "", "", false, false);
        proxy.useCyberVillains = false;
        httpContext.addHandler(proxy);
        server.addContext(httpContext);
        SocketListener listener = new SocketListener();
        listener.setPort(4444);
        server.addListener(listener);
        server.start();
    }
View Full Code Here

Examples of org.teiid.transport.SocketListener

      ClientServiceRegistryImpl jdbcCsr = new ClientServiceRegistryImpl();
      jdbcCsr.registerClientService(ILogon.class, logon, LogConstants.CTX_SECURITY);
      jdbcCsr.registerClientService(DQP.class, dqpProxy, LogConstants.CTX_DQP);
     
      if (this.jdbcSocketConfiguration.getEnabled()) {
        this.jdbcSocket = new SocketListener(this.jdbcSocketConfiguration, jdbcCsr, this.dqpCore.getBufferManager(), offset);
        LogManager.logInfo(LogConstants.CTX_RUNTIME, IntegrationPlugin.Util.getString("socket_enabled","Teiid JDBC = ",(this.jdbcSocketConfiguration.getSSLConfiguration().isSslEnabled()?"mms://":"mm://")+this.jdbcSocketConfiguration.getHostAddress().getHostName()+":"+(this.jdbcSocketConfiguration.getPortNumber()+offset))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
      } else {
        LogManager.logInfo(LogConstants.CTX_RUNTIME, IntegrationPlugin.Util.getString("socket_not_enabled", "jdbc connections")); //$NON-NLS-1$ //$NON-NLS-2$
      }
     
      ClientServiceRegistryImpl adminCsr = new ClientServiceRegistryImpl(Type.Admin);
      adminCsr.registerClientService(ILogon.class, logon, LogConstants.CTX_SECURITY);
      adminCsr.registerClientService(Admin.class, adminProxy, LogConstants.CTX_ADMIN_API);
     
      if (this.adminSocketConfiguration.getEnabled()) {
        this.adminSocket = new SocketListener(this.adminSocketConfiguration, adminCsr, this.dqpCore.getBufferManager(), offset);
        LogManager.logInfo(LogConstants.CTX_RUNTIME, IntegrationPlugin.Util.getString("socket_enabled","Teiid Admin", (this.adminSocketConfiguration.getSSLConfiguration().isSslEnabled()?"mms://":"mm://")+this.adminSocketConfiguration.getHostAddress().getHostName()+":"+(this.adminSocketConfiguration.getPortNumber()+offset))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
      } else {
        LogManager.logInfo(LogConstants.CTX_RUNTIME, IntegrationPlugin.Util.getString("socket_not_enabled", "admin connections")); //$NON-NLS-1$ //$NON-NLS-2$
      }
     
View Full Code Here

Examples of us.deathmarine.diablodrops.listeners.SocketListener

    debug = config.getBoolean("Plugin.Debug", false);

    PluginManager pm = getServer().getPluginManager();
    pm.registerEvents(new MobListener(this), this);
    pm.registerEvents(new TomeListener(this), this);
    pm.registerEvents(new SocketListener(this), this);
    pm.registerEvents(new EffectsListener(this), this);
    pm.registerEvents(new SetListener(this), this);

    getCommand("diablodrops").setExecutor(new DiabloDropCommand(this));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.