Package org.apache.abdera.ext.thread

Examples of org.apache.abdera.ext.thread.InReplyTo


    e1.setId("tag:example.org,2006:first");
    e2.setId("tag:example.org,2006:second");
   
    ThreadHelper.addInReplyTo(e2,e1); // e2 is a response to e1
    assertNotNull(e2.getExtension(ThreadConstants.IN_REPLY_TO));
    InReplyTo irt = e2.getExtension(ThreadConstants.IN_REPLY_TO);
    assertEquals(irt.getRef(), e1.getId());
   
  }
View Full Code Here


   
    // Entry e2 is a reply to Entry e1
    ThreadHelper.addInReplyTo(e2, e1);
   
    // Get the in-reply-to information
    InReplyTo irt = ThreadHelper.getInReplyTo(e2);
    System.out.println(irt.getRef());
   
    // Add a link to a feed containing replies to e1
    Link replies = e1.addLink("replies.xml", Link.REL_REPLIES);
   
    // Set the known number of replies as an attribute on the link
View Full Code Here

            } else if (element instanceof InReplyTo) {
                jstream.startObject();
                writeLanguageFields(element, jstream);
                if (!isSameAsParentBase(element))
                    jstream.writeField("xml:base", element.getResolvedBaseUri());
                InReplyTo irt = (InReplyTo)element;
                jstream.writeField("ref", irt.getRef());
                jstream.writeField("href", irt.getResolvedHref());
                jstream.writeField("type", irt.getMimeType());
                jstream.writeField("source", irt.getResolvedSource());
                jstream.endObject();
            } else {
                writeElement(element, null, jstream);
            }
        }
View Full Code Here

        // Entry e2 is a reply to Entry e1
        ThreadHelper.addInReplyTo(e2, e1);

        // Get the in-reply-to information
        InReplyTo irt = ThreadHelper.getInReplyTo(e2);
        System.out.println(irt.getRef());

        // Add a link to a feed containing replies to e1
        Link replies = e1.addLink("replies.xml", Link.REL_REPLIES);

        // Set the known number of replies as an attribute on the link
View Full Code Here

        e1.setId("tag:example.org,2006:first");
        e2.setId("tag:example.org,2006:second");

        ThreadHelper.addInReplyTo(e2, e1); // e2 is a response to e1
        assertNotNull(e2.getExtension(ThreadConstants.IN_REPLY_TO));
        InReplyTo irt = e2.getExtension(ThreadConstants.IN_REPLY_TO);
        assertEquals(e1.getId(), irt.getRef());

    }
View Full Code Here

    e1.setId("tag:example.org,2006:first");
    e2.setId("tag:example.org,2006:second");
   
    ThreadHelper.addInReplyTo(e2,e1); // e2 is a response to e1
    assertNotNull(e2.getExtension(ThreadConstants.IN_REPLY_TO));
    InReplyTo irt = e2.getExtension(ThreadConstants.IN_REPLY_TO);
    assertEquals(irt.getRef(), e1.getId());
   
  }
View Full Code Here

    } else if (element instanceof InReplyTo) {
      jstream.startObject();
      writeLanguageFields(element, jstream);
      if (!isSameAsParentBase(element))
        jstream.writeField("xml:base", element.getResolvedBaseUri());
      InReplyTo irt = (InReplyTo)element;     
      jstream.writeField("ref",irt.getRef());
      jstream.writeField("href",irt.getResolvedHref());
      jstream.writeField("type",irt.getMimeType());
      jstream.writeField("source",irt.getResolvedSource());
      jstream.endObject();
    } else {
      writeElement(element,null,jstream);
    }
}
View Full Code Here

            } else if (element instanceof InReplyTo) {
                jstream.startObject();
                writeLanguageFields(element, jstream);
                if (!isSameAsParentBase(element))
                    jstream.writeField("xml:base", element.getResolvedBaseUri());
                InReplyTo irt = (InReplyTo)element;
                jstream.writeField("ref", irt.getRef());
                jstream.writeField("href", irt.getResolvedHref());
                jstream.writeField("type", irt.getMimeType());
                jstream.writeField("source", irt.getResolvedSource());
                jstream.endObject();
            } else {
                writeElement(element, null, jstream);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.abdera.ext.thread.InReplyTo

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.