(cc-ing
dev@... as the
issues@... is usually used for bug tracking reports)
I think this is probably a bug - perhaps there should be an extra event for when a feed is redirected or something? Unfortunately the java HttpURLConnection class doesn't give us much control over that, so writing it might be difficult.
On the other hand, looking at the code it appears that the HttpClientFeedFetcher version of the feed fetcher will fire events using the original URL passed in.
I haven't tested that at all, but that the way the code reads to me. If you do try it, the version in CVS has a few extra features and bug fixes compared to the last released version.
Nick
-----Original Message-----
From: Alex Kritikos [mailto:
alex.kritikos@...]
Sent: Tuesday, 22 July 2008 7:24 PM
To:
issues@...
Subject: Issue with Rome and RomeFetcher
Hi there,
I am using Rome and Rome Fetcher for an RSS to JMS bridge project. I
have some metadata associated with each feed url like for example a
user defined title. I am using the FetcherEventListener interface and
when i receive a
callback, i am trying to match the fetcherevent url with my metadata
in order to publish the entries to a JMS topic. While this works well
for regular feeds it has an issue with rss urls that redirect to
another address as the url in the fetcher event is not the original
one but the redirected one. I have discovered that the SyndFeedInfo
object contains an Id which is the persistent original url but the
problem is that the cache is not set when the event is fired but it
set after that, so i am not sure how to work around it. I was
considering not using Fetcher events and simply take the SyndFeed
object returned by the retrieveFeed method and combine it with the
SyndFeedInfo object from the cache to emulate the fetcher events but
this way i loose the ifmodified since functionality and will be
publishing to jms the results of each poll cycle. Is there a suggested
way to work around this issue (other than writing my own fetcher class)?
Many thanks,
Alex Kritikos
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...
Mind Over Matter - How Technology Matters
Find out how modern lifestyles and technologies are influencing the human mind at education.au's seminar on Tuesday 26 August, Sydney.
Find out more: www.educationau.edu.au
IMPORTANT: This e-mail, including any attachments, may contain private or confidential information. If you think you may not be the intended recipient, or if you have received this e-mail in error, please contact the sender immediately and delete all copies of this e-mail. If you are not the intended recipient, you must not reproduce any part of this e-mail or disclose its contents to any other party. This email represents the views of the individual sender, which do not necessarily reflect those of education.au limited except where the sender expressly states otherwise. It is your responsibility to scan this email and any files transmitted with it for viruses or any other defects. education.au limited will not be liable for any loss, damage or consequence caused directly or indirectly by this email.
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...