Package de.mhus.hair.sling

Examples of de.mhus.hair.sling.SlingConversation.request()


        SlingConversation con = app.createConversation();
       
        HashMap<String, String> post = new HashMap<String, String>();
        post.put("path", source.getName());
        post.put("cmd", "Activate");
        WebResponse response = con.request("/bin/replicate.json",post);
        if (response.getResponseCode() == 200) {
          System.out.println( response.getText() );
        }
      } catch (Throwable e) {
        monitor.log().i(e);
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.