Examples of ServerConfiguration


Examples of org.apache.qpid.server.configuration.ServerConfiguration

        // Call save Configuration to be sure we have saved the test specific
        // file. As the optional status
        saveTestConfiguration();
        saveTestVirtualhosts();

        ServerConfiguration configuration = new ServerConfiguration(_configFile);
        // Don't need to configuration.configure() here as we are just pulling
        // values directly by String.
        return configuration.getConfig().getString(property);
    }
View Full Code Here

Examples of org.atomojo.app.ServerConfiguration

            ex.printStackTrace();
            return;
         }
      }
     
      conf = new ServerConfiguration();
     
      File serverConfFile = new File(testDir,"server.conf");
      File keystoreFile = new File(testDir,"keystore");
      File logFile = new File(testDir,"host.log");
      if (serverConfFile.exists()) {
View Full Code Here

Examples of org.codinjutsu.tools.mongo.ServerConfiguration

                        .setAddAction(new AnActionButtonRunnable() {
                            @Override
                            public void run(AnActionButton button) {
                                stopEditing();

                                ServerConfiguration serverConfiguration = ServerConfiguration.byDefault();

                                ConfigurationDialog dialog = new ConfigurationDialog(mainPanel, mongoManager, serverConfiguration);
                                dialog.setTitle("Add a Mongo Server");
                                dialog.show();
                                if (!dialog.isOK()) {
                                    return;
                                }

                                configurations.add(serverConfiguration);
                                int index = configurations.size() - 1;
                                tableModel.fireTableRowsInserted(index, index);
                                table.getSelectionModel().setSelectionInterval(index, index);
                                table.scrollRectToVisible(table.getCellRect(index, 0, true));
                            }
                        })
                        .setAddActionName("addServer")
                        .setEditAction(new AnActionButtonRunnable() {
                            @Override
                            public void run(AnActionButton button) {
                                stopEditing();

                                int selectedIndex = table.getSelectedRow();
                                if (selectedIndex < 0 || selectedIndex >= tableModel.getRowCount()) {
                                    return;
                                }
                                ServerConfiguration sourceConfiguration = configurations.get(selectedIndex);
                                ServerConfiguration copiedCconfiguration = sourceConfiguration.clone();


                                ConfigurationDialog dialog = new ConfigurationDialog(mainPanel, mongoManager, copiedCconfiguration);
                                dialog.setTitle("Edit a Mongo Server");
                                dialog.show();
View Full Code Here

Examples of org.exolab.jms.config.ServerConfiguration

     * @return an export URI
     */
    private String getExportURI(int port) {
        SchemeType scheme = getScheme();
        String acceptScheme = scheme.toString() + "-server";
        ServerConfiguration server
                = getConfiguration().getServerConfiguration();
        return getURI(acceptScheme, server.getHost(), port).toString();
    }
View Full Code Here

Examples of org.fcrepo.server.config.ServerConfiguration

    }

    @Override
    protected void registerBeanDefinitions()
            throws ServerInitializationException{
        ServerConfiguration sc = getConfig();
        ModuleConfiguration rim = sc.getModuleConfiguration(ResourceIndex.class.getName());
        if (rim != null){
            String ds = rim.getParameter("datastore");
            if (ds != null){
                DatastoreConfiguration dsConfig = sc.getDatastoreConfiguration(ds);
                if (dsConfig != null){
                    try{
                        String name = TriplestoreConnector.class.getName();
                        GenericBeanDefinition beanDefinition = Server.getTriplestoreConnectorBeanDefinition(dsConfig);
                        beanDefinition.setAttribute("name", name);
View Full Code Here

Examples of org.glassfish.grizzly.http.server.ServerConfiguration

            final HttpServer server = new HttpServer();
            final NetworkListener listener = new NetworkListener("grizzly", host, port);
            server.addListener(listener);

            // Map the path to the processor.
            final ServerConfiguration config = server.getServerConfiguration();
            config.addHttpHandler(handler, u.getPath());

            // Start the server.
            return server;
        }
View Full Code Here

Examples of org.jboss.remoting.ServerConfiguration

      log.info("entering " + getName());
     
      // Start server.
      host = InetAddress.getLocalHost().getHostAddress();
      port = PortUtil.findFreePort(host);
      ServerConfiguration config = new ServerConfiguration("http");
      Map locatorConfig = new HashMap();
      locatorConfig.put("serverBindAddress", host);
      locatorConfig.put("serverBindPort", Integer.toString(port));
      locatorConfig.put(HTTPMetadataConstants.NO_THROW_ON_ERROR, "true");
      locatorConfig.put(InvokerLocator.FORCE_REMOTE, "true");
      config.setInvokerLocatorParameters(locatorConfig);
      Map handlers = new HashMap();
      handlers.put("test", new TestInvocationHandler());
      config.setInvocationHandlers(handlers);
      connector = new Connector();
      connector.setServerConfiguration(config);
      connector.create();
      connector.start();
     
View Full Code Here

Examples of org.jwebsocket.api.ServerConfiguration

    if (log.isDebugEnabled()) {
      log.debug("Instantiating default servers...");
    }
    List<WebSocketServer> servers = new FastList<WebSocketServer>();
    // instantiate the Token server by default
    ServerConfiguration config = getServerConfiguration();
    TokenServer tokenServer = new TokenServer(config);
    servers.add(tokenServer);
    if (log.isInfoEnabled()) {
      log.info("Default server " + tokenServer.getId() + " instantiated.");
    }
View Full Code Here

Examples of org.mitre.openid.connect.config.ServerConfiguration

  }

  @Test
  public void getServerConfiguration_success() {

    ServerConfiguration result = service.getServerConfiguration(issuer);

    assertThat(mockServerConfig, is(notNullValue()));
    assertEquals(mockServerConfig, result);
  }
View Full Code Here

Examples of org.wso2.carbon.base.ServerConfiguration

                            response.addHeader(HTTP.CONTENT_TYPE, "text/html");
                            outputStream.write("<h4>Policy not found!</h4>".getBytes());
                        } else {
                            String ipAddress = "http://" + NetworkUtils.getLocalHostname() + ":" +
                                               CarbonUtils.getTransportPort(configCtx, "http");
                            ServerConfiguration serverCofig = ServerConfiguration.getInstance();
                            outputStream.write(("<html><head>" +
                                                "<title>WSO2 Server v" +
                                                serverCofig.getFirstProperty("Version") +
                                                " Management Console - " +
                                                axisService.getName() +
                                                " Service Policies</title>" +
                                                "</head>" +
                                                "<body>" +
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.