Examples of ServerImpl


Examples of org.apache.cxf.endpoint.ServerImpl

       
        Map<String, Object> props = new HashMap<String, Object>();
        props.put("contextMatchStrategy", "stem");
        sf.setProperties(props);
       
        ServerImpl svr = (ServerImpl) sf.create();

        svr.getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
       
        ClientImpl client = new ClientImpl(getBus(), svr.getEndpoint());
       
        Object[] objects = client.invoke(new QName("http://cxf.apache.org/jra", "getCustomers"),
                                         new GetCustomers());
        assertNotNull(objects);
       
        Customers c = (Customers) objects[0];
        Customer customer = c.getCustomer().iterator().next();
        assertEquals("Dan Diephouse", customer.getName());
       
        GetCustomer getCustomer = new GetCustomer();
        getCustomer.setId(customer.getId());
        objects = client.invoke(new QName("http://cxf.apache.org/jra", "getCustomer"), getCustomer);
       
        customer = (Customer) objects[0];
        assertEquals("Dan Diephouse", customer.getName());
//       
//        objects = client.invoke(new QName("http://cxf.apache.org/jra", "deleteCustomer"),
//        customer.getId());
//        assertTrue(objects == null || objects.length == 0);
//       
        svr.destroy();
    }
View Full Code Here

Examples of org.jboss.bootstrap.microcontainer.ServerImpl

      String[] args = {"-c", "defaulthotdeploy", "-Djboss.server.deployerBeansPrefix="+deployPrefix};
      Main main = new Main();
      main.boot(args);
      Server server = main.getServer();
      assertTrue("Server", server instanceof ServerImpl);
      ServerImpl serverImpl = (ServerImpl) server;

      // Validate that the expected deployment beans exist
      Kernel kernel = serverImpl.getKernel();
      assertInstalled(kernel, "ProfileService");
      assertInstalled(kernel, "MainDeployer");
      assertInstalled(kernel, "BeanDeployer");
      assertInstalled(kernel, "VFSDeploymentScanner");
      KernelRegistry registry = kernel.getRegistry();
View Full Code Here

Examples of org.jcouchdb.db.ServerImpl

  }

  public void before() throws IOException, URISyntaxException, CouchDbException {
    URI currentUri = getServerUri();
    serverURI = currentUri;
    Server currentServer = new ServerImpl( serverURI.getHost(), currentUri.getPort() );

    final String username = getUsername();
    final String password = getPassword();

    if ( username != null && password != null ) {
      currentServer.setCredentials( AuthScope.ANY, new Credentials() {
        @Override
        public Principal getUserPrincipal() {
          return new UserPrincipal( username );
        }
View Full Code Here

Examples of pdp.scrabble.multiplayer.impl.ServerImpl

  }

  public Server createServer(int port, String language) {
    try {
      try {
        return new ServerImpl(port,language);
      }
      catch (AlreadyBoundException ex) {
        Display.error("Server", "Cannot create Server");
        return null;
      }
View Full Code Here

Examples of railo.runtime.net.mail.ServerImpl

    }
    if (hasAccess) {
      for (int i = 0; i < elServers.length; i++) {
        Element el = elServers[i];
        if (el.getNodeName().equals("server"))
          servers[index++] = new ServerImpl(el.getAttribute("smtp"), toInt(el.getAttribute("port"), 25), el.getAttribute("username"),
              decrypt(el.getAttribute("password")), toBoolean(el.getAttribute("tls"), false), toBoolean(el.getAttribute("ssl"), false));

      }
    }
    config.setMailServers(servers);
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.