Package com.ibm.sbt.services.client.connections.blogs

Examples of com.ibm.sbt.services.client.connections.blogs.BlogService


    BasicEndpoint basicEndpoint = (BasicEndpoint) EndpointFactory.getEndpoint(endpointName);
    if (StringUtil.isNotEmpty(user)) {
      basicEndpoint.login(user, password);
    }

    this.blogService = new BlogService();
    this.setEndpoint(basicEndpoint);
  }
View Full Code Here


   
    /**
     * Default constructor
     */
    public BlogServiceApp(String url, String user, String password) {
        this.blogService = new BlogService();
        this.blogService.setEndpoint(createEndpoint(url, user, password));
    }
View Full Code Here

       
      if(args.length > 3){ // if a blog handle has been provided replace the default one.
      app.setHomepageHandle(args[3]);
    }
      try {
        BlogService BlogService = app.getBlogService();
            EntityList<Blog> blogs = BlogService.getAllBlogs();
            for (Iterator<Blog> iter = blogs.iterator(); iter.hasNext(); ) {
                System.out.println(iter.next().getTitle());
            }
        } catch (ClientServicesException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.ibm.sbt.services.client.connections.blogs.BlogService

Copyright © 2018 www.massapicom. 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.