Examples of create()


Examples of org.atmosphere.wasync.impl.AtmosphereClient.create()

                .method(Request.METHOD.GET)
                .uri(targetUrl)
                .trackMessageLength(true)
                .transport(transport());

        Socket socket = client.create();
        IOException ioException = null;
        try {
            socket.on(new Function<ConnectException>() {

                @Override

Examples of org.atmosphere.wasync.serial.SerializedClient.create()

        RequestBuilder request = client.newRequestBuilder()
                .method(Request.METHOD.GET)
                .uri(targetUrl + "/suspend")
                .transport(transport());

        Socket socket = client.create(b.build());

        socket.on("message", new Function<String>() {
            @Override
            public void on(String t) {
                logger.info("Serialized Function invoked {}", t);

Examples of org.atomojo.app.client.FeedClient.create()

     
      Identity admin = new Identity("admin","admin");
      Reference autoRef = new Reference("http://localhost:8080/R/");
      FeedClient client = new FeedClient(autoRef,admin);
     
      Status status = client.create("<feed xmlns='http://www.w3.org/2005/Atom'><title>autoconf</title></feed>");
      assertTrue(status.isSuccess());
     
      client.createEntry(
         "<entry xmlns='http://www.w3.org/2005/Atom'>" +
         "<title>test1 db</title>" +

Examples of org.atomojo.app.db.RemoteApp.create()

         RemoteApp app = new RemoteApp(db,doc.getDocumentElement());
         if (app.exists()) {
            getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
            return new StringRepresentation("Remote app with name "+app.getName()+" already exists.");
         }
         if (app.create()) {
            getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
            Reference ref = new Reference(getRequest().getResourceRef().toString()+"/"+app.getName());
            getResponse().setLocationRef(ref);
            return null;
         } else {

Examples of org.atomojo.app.db.SyncProcess.create()

         }
         if (proc.getSyncTarget()==null) {
            getResponse().setStatus(Status.CLIENT_ERROR_BAD_REQUEST);
            return new StringRepresentation("The local target with name "+top.getAttributeValue("target")+" does not exist.");
         }
         if (proc.create()) {
            getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
            Reference ref = new Reference(getRequest().getResourceRef().toString()+"/"+proc.getName());
            getResponse().setLocationRef(ref);
            return null;
         } else {

Examples of org.atomojo.app.db.SyncTarget.create()

         SyncTarget target = new SyncTarget(db,doc.getDocumentElement());
         if (target.exists()) {
            getResponse().setStatus(Status.CLIENT_ERROR_CONFLICT);
            return new StringRepresentation("Target with name "+target.getName()+" already exists.");
         }
         if (target.create()) {
            getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
            Reference ref = new Reference(getRequest().getResourceRef().toString()+"/"+target.getName());
            getResponse().setLocationRef(ref);
            return null;
         } else {

Examples of org.bladerunnerjs.model.App.create()

    App app1 = ThreadSafeStaticBRJSAccessor.root.userApp("app1");
    File indexFile = new File(app1.storageDir("jsdoc"), "output/index.html");
   
    assertFalse(indexFile.exists());
   
    app1.create();
    service.getJsdocForApp("app1");
   
    assertTrue(indexFile.exists());
  }
 

Examples of org.bladerunnerjs.model.Bladeset.create()

    Bladeset bladeset = (bladesetName.equals(App.DEFAULT_CONTAINER_NAME)) ? app.defaultBladeset() : app.bladeset(bladesetName);
    if (bladeset == app.defaultBladeset()) {
        try
        {
          if (!bladeset.dirExists()) {
            bladeset.create();
          }
        }
        catch (InvalidNameException | ModelUpdateException e)
        {
          throw new CommandOperationException(e);

Examples of org.bladerunnerjs.model.DirNode.create()

   
    if(!testResults.dirExists())
    {
      try
      {
        testResults.create();
      }
      catch(InvalidNameException | ModelUpdateException e)
      {
        throw new CommandOperationException("Cannot create test results dir at '" + testResults.dir().getPath() + "'");
      }

Examples of org.bladerunnerjs.model.engine.Node.create()

    assertFalse("child dir does not exist", childDir.exists());
    assertFalse("grandchild dir does not exist", grandchildDir.exists());
    assertFalse("great grandchild dir does not exist", greatGrandchildDir.exists());
   
    Node node = new TestNode(mockRootNode, mockRootNode, grandchildDir);
    node.create();
   
    assertTrue("temp dir exists", tempDir.exists());
    assertTrue("child dir exists", childDir.exists());
    assertTrue("grandchild dir exists", grandchildDir.exists());
    assertFalse("great grandchild dir does not exist", greatGrandchildDir.exists());
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.