Hello,
When I insert an entry sometimes I get a RedirectRequiredException. I
couldn't find any documentation on how to handle this. The message is,
"Moved Temporarily". So, shouldn't the Java API simply try again at the
new URL?
Or, is it my responsibility to wrap all of the
CalendarService.[insert,...] methods in a try/catch to do this myself
like this:
try {
newEventEntry = calendarService.insert(feedUrl, eventEntry);
} catch(RedirectRequiredException ex) {
// How do I handle this?
newEventEntry = calendarService.insert(
new URL(ex.getRedirectLocation()), eventEntry);
}
Thanks.
Mon 2006/Sep/25 10:15:31.866
AM|***|http-8080-Processor5|GoogleCalendarSync|com.google.gdata.util.RedirectRequiredException:
Moved Temporarily
com.google.gdata.util.RedirectRequiredException: Moved Temporarily
at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(Unknown
Source)
at
com.google.gdata.client.http.HttpGDataRequest.checkResponse(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.Service.insert(Unknown Source)
at com.google.gdata.client.GoogleService.insert(Unknown Source)
--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/tg/
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---