Examples of Post


Examples of net.sf.l2j.gameserver.communitybbs.BB.Post

  {
    _postByTopic = new FastMap<Topic,Post>();
  }
  public Post getGPosttByTopic(Topic t)
  {
    Post post = null;
    post = _postByTopic.get(t);
    if(post == null)
    {
      post = load(t);
      _postByTopic.put(t,post);
View Full Code Here

Examples of net.sourceforge.jwbf.core.actions.Post

  }

    private Post getLoginMsg(final String username, final String pw,
            final String domain, final String token) {
        Post pm = new Post("/api.php?action=login&format=xml");
        pm.addParam("lgname", username);
        pm.addParam("lgpassword", pw);
        if (domain != null)
            pm.addParam("lgdomain", domain);
        if (token != null) {
            pm.addParam("lgtoken", token);
        }
        return pm;
    }
View Full Code Here

Examples of org.apache.cocoon.rest.controller.method.Post

        }

        @Override
        public RestResponse execute(Object controller) throws Exception {
            if (controller instanceof Post) {
                Post post = (Post) controller;
                return post.doPost();
            }

            return super.execute(controller);
        }
View Full Code Here

Examples of org.apache.ibatis.domain.blog.Post

      config.addMappedStatement(selectPost);
      List<Post> posts = executor.query(selectPost, 5, RowBounds.DEFAULT, Executor.NO_RESULT_HANDLER);
      executor.flushStatements();
      executor.rollback(true);
      assertEquals(1, posts.size());
      Post post = posts.get(0);
      assertNull(post.getBlog());
    } finally {
      executor.rollback(true);
      executor.close(false);
    }
  }
View Full Code Here

Examples of org.b3log.solo.sync.Post

     * Tests {@linkplain CnBlogsBlog#getPost(java.lang.String)} method.
     * @throws SyncException sync exception
     */
    //@org.testng.annotations.Test
    public void getPost() throws SyncException {
        final Post article = cnBlogsBlog.getPost("1818114");
        assertNotNull(article);
        assertEquals(article.getTitle(), "For Solo 同步测试");
    }
View Full Code Here

Examples of org.b3log.solo.sync.Post

     * Tests {@linkplain CSDNBlog#getPost(java.lang.String)} method.
     * @throws SyncException sync exception
     */
    //@Test
    public void getPost() throws SyncException {
        final Post article = csdnBlog.getPost("5817062");
        assertNotNull(article);
        assertEquals(article.getTitle(), "HTTP/1.1 Status Code Definitions");
    }
View Full Code Here

Examples of org.b3log.solo.sync.Post

            } else {
                final String userName = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_NAME);
                final String userPwd = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_PASSWORD);
                final Post externalArticle = new MetaWeblogPost(article);
                final String articleId = article.getString(Keys.OBJECT_ID);
                LOGGER.log(Level.FINEST,
                           "Getting External article-Solo article relation....");
                final JSONObject externalArticleSoloArticleRelation =
                        externalArticleSoloArticleRepository.getBySoloArticleId(
View Full Code Here

Examples of org.b3log.solo.sync.Post

                final String userName = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_NAME);
                final String userPwd = blogSyncMgmt.getString(
                        BLOG_SYNC_EXTERNAL_BLOGGING_SYS_USER_PASSWORD);

                final Post post = new MetaWeblogPost(article);
                final MetaWeblog metaWeblog =
                        BlogFactory.getMetaWeblog(externalBloggingSys);
                metaWeblog.setUserName(userName);
                metaWeblog.setUserPassword(userPwd);
                postId = metaWeblog.newPost(post);
                post.setId(postId);

                final JSONObject externalArticleSoloArticleRelation =
                        new JSONObject();
                externalArticleSoloArticleRelation.put(
                        BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED, true);
View Full Code Here

Examples of org.b3log.solo.sync.Post

                if (null != soloArticle) {
                    article = soloArticle;
                    imported = soloArticle.getBoolean(
                            BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED);
                } else { // Not retrieved yet, get the article from External blogging system
                    final Post externalPost =
                            metaWeblog.getPost(externalArticleId);
                    if (null == externalPost) {
                        LOGGER.log(Level.WARNING,
                                   "Retrieve article[postId={0}] from external blogging system[{1}] is null",
                                   new String[]{externalArticleId, externalSys});
                        continue;
                    }

                    article = externalPost.toJSONObject();
                    final JSONObject externalArticleSoloArticleRelation =
                            new JSONObject();
                    externalArticleSoloArticleRelation.put(
                            BLOG_SYNC_EXTERNAL_ARTICLE_IMPORTED, false);
                    externalArticleSoloArticleRelation.put(
View Full Code Here

Examples of org.cruxframework.crux.core.shared.rest.annotation.POST

    PUT put = method.getAnnotation(PUT.class);
    if (put != null)
    {
      return put.validatePreviousState();
    }
    POST post = method.getAnnotation(POST.class);
    if (post != null)
    {
      return post.validatePreviousState();
    }

      return null;
    }
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.