Examples of IWeibo


Examples of com.jeck.microblogging.shared.interfaces.IWeibo

  @Override
  public List<Blog> listMyBlogs(Page page,BlogFeature feature) {
    logger.info("begin listMyBlogs!");
    ICallBackParameter para=new CallBackParameterImpl(perThreadRequest.get().getSession());
    if (null != para.getParameter(ICallBackParameter.ACCESS_TOKEN, AccessToken.class)){
      IWeibo weibo=new SinaWeibo();
      List<Blog> blogs=weibo.getAllWeibo(para,page,feature);
      return blogs;
    }else{
      //work for test
      List<Blog> datas= new ArrayList<Blog>();
      Blog b = new Blog();
View Full Code Here

Examples of com.jeck.microblogging.shared.interfaces.IWeibo

  @Override
  public long getBlogCount() {
    logger.info("begin getBlogCount!");
    ICallBackParameter para=new CallBackParameterImpl(perThreadRequest.get().getSession());
    if (null != para.getParameter(ICallBackParameter.ACCESS_TOKEN, AccessToken.class)){
      IWeibo weibo=new SinaWeibo();
      return weibo.getAllWeiboCount(para);
    }else{
      return 0;
    }
  }
View Full Code Here

Examples of com.pccw.service.iace.IWeibo

        HessianConnectionFactory connFactory=new MyConnectionFactory();
        proxyFactory.setConnectionFactory(connFactory);
        connFactory.setHessianProxyFactory(proxyFactory);

      try {
        IWeibo weibo;
        weibo = (IWeibo) proxyFactory.create(IWeibo.class, url);
        System.out.println(weibo.getContacts());
      } catch (Exception e) {
        System.out.println("Exception:"+ ((InteractionException)e).getTypeId());
        e.printStackTrace();
      }
     
      try {
        IWeibo weibo;
        weibo = (IWeibo) proxyFactory.create(IWeibo.class, url);
        System.out.println(weibo.getContacts());
      } catch (Exception e) {
        System.out.println("Exception:"+ ((InteractionException)e).getTypeId());
        e.printStackTrace();
      }
    }
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.