Questions on FeedAdapter and HttpSyncAdapter

0 views
Skip to first unread message

bgoetzmann

unread,
Jul 2, 2008, 3:56:50 PM7/2/08
to Mesh4x Discussion
Hello,

In my Java application, for synchronization of two feeds, I use two
FeedAdapter instances. Each is linked to a file for persistence.
Now, from my application, I would like to merge a feed (using a
FeedAdapter instance) with an RSS flow fetched from an URL; it is as
my application subcribed to a feed. I'm in the case of one way
synchronization.

In this case, what adapter is best suited?

It seems to me that there are 3 possibilities:

1. It can be accomplish if a special adapter exists initialized with
the "text" fetched from the URL using some custom code. A sort of feed
adapter in memory.

2. By the use of temporary file: once the RSS document is fetched you
can save it in this file.

3. Or perhaps, I can use HttpSyncAdapter, but I think I must override
its merge method in order to not send items.

What is the best way?

Thanks,

Bertrand.

bgoetzmann

unread,
Jul 4, 2008, 4:00:22 AM7/4/08
to Mesh4x Discussion
Hello,

Continuing my thinking on this subject, I think HttpSyncAdapter is
best suited; but the thing that hurts me a little is to override the
merge method, the only method of ISupportMerge interface, that is
implemented by HttpSyncAdapter!

Cheer,

Bertrand.
Reply all
Reply to author
Forward
0 new messages