Examples of InReplyTo


Examples of com.ibm.sbt.services.client.connections.activities.InReplyTo

        attribute(TERM, entity.getFlags()),
        attribute(LABEL, entity.getFlags())) : null;
  }
 
  protected Element inReplyTo() {
    InReplyTo inReplyTo = entity.getInReplyTo();
    return inReplyTo != null ? element(IN_REPLY_TO,
        attribute(SCHEME, Namespace.THR.getUrl()),
        attribute(REF, inReplyTo.getRef()),
        attribute(SOURCE, inReplyTo.getSource()),
        attribute(HREF, inReplyTo.getHref())) : null;
  }
View Full Code Here

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

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

   
    // 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

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

            } 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

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

        // 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

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(e1.getId(), irt.getRef());

    }
View Full Code Here

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

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

    } 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

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

            } 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
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.