Package org.apache.abdera.model

Examples of org.apache.abdera.model.Entry.clone()


    Set<String> keys = entries.keySet();
    for (String s : keys) {
      Entry entry = getEntry(s);
      // TODO: why clone this? Abdera seems to mess up the object
      // if we pass the reference to this object
      feed.addEntry((Entry) entry.clone());
    }
    return feed;
  }

  public Entry getEntry(Object entryIdthrows Exception {
View Full Code Here


  public ResponseContext getEntry(
    RequestContext request) {
      Entry entry = (Entry) getAbderaEntry(request);
      if (entry != null) {
        Feed feed = entry.getParentElement();
        entry = (Entry) entry.clone();
        entry.setSource(feed.getAsSource());
        Document<Entry> entry_doc = entry.getDocument();
        return
          ProviderHelper.returnBase(
            entry_doc,
View Full Code Here

  public Feed retrieveFeed(RequestContext request) {
    Feed feed = createFeed();
    Set<String> keys = entries.keySet();
    for (String s : keys) {
      Entry entry = retrieveEntry(request, s);
      feed.addEntry((Entry) entry.clone());
    }
    return feed;
  }

  @Override
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.