Retrieving a document's content URL in Java


If you have a published document, its contents can be viewed by fetching the DocumentListEntry object's <content> src URL:
List<DocumentListEntry> entries = resultFeed.getEntries();
for (DocumentListEntry entry : entries) {
  MediaContent content = (MediaContent)entry.getContent();
  System.out.println("View '" + entry.getTitle().getPlainText() + "' at " + content.getUri());        
}

15 comments:

Scott said...

When I try reading from this URI I receive a Moved Temporarily page.

Eric (Google) said...

This is related to feature request 35 and 70:
http://code.google.com/p/gdata-issues/issues/detail?id=35
http://code.google.com/p/gdata-issues/issues/detail?id=70

Please star those issues to move them up.

Note, if you open this page in a browser, you need to be authenticated to the correct account.

If you're using the API, you'll need to send an appropriate Authorization header on the HTTP request.

danny said...

Is there an example of obtaining/sending the authorization header for the http request somewhere?

Hiperion said...

Did you find the solution?

Unknown said...

fashion jewelry wholesale
wholesale fashion jewelry
china jewelry wholesale
china fashion jewelry
jewelry wholesale china
fashion jewelry china
wholesale jewelry
jewelry wholesale

uknowme said...

Please star those issues to move them up.

Note, if you open this page in a browser, you need to be authenticated to the correct account.

If you're using the API, you'll need to send an appropriate Authorization header on the HTTP request.
hotels in Khajuraho

wireless alarms

InnomaxMediaLLP said...

Thanks so much with this fantastic new web site. I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into the world.
Web developer

Unknown said...

Link Removal Request


Dear Webmaster,

We received a notice from Google stating that they have levied a penalty on our website as they "detected unnatural links" redirecting to our website holidayiq.com.

The only way we can remove this penalty and help Google reconsider putting our website back in their index is by removing these links and we need your help for the same. We request you to consider this request on high priority.

http://gdatatips.blogspot.com/2009/01/retrieve-documents-content-in-java_05.html

We would again like to bring your notice that failure to remove these links would require us to file a "Disavow Links" report with Google. Once we submit this report to Google, they may "flag" your site as "spammy" or otherwise if anything is not in compliance with their guidelines. The last thing we want is to have another webmaster go through this grief!

Your cooperation in this process would be deeply appreciated. We kindly request you to send us an acknowledgement of this mail along with a confirmation that these links have been removed.
Thanks a lot for your help.

If you want to reach out to us mail us on pradeep@holidayiq.com
Regards,
Webmaster
holidayiq.com

Cyntia Clara said...

Great stuff from you, man. Ive read your stuff before and youre just too awesome. I love what youve got here, love what youre saying and the way you say it. You make it entertaining and you still manage to keep it smart. I cant wait to read more from you. This is really a great blog. Aplikasi Game iPhone Informasi pc gaming

Anonymous said...

Bagi anda yang bingung dengan harga mesin seperti mesin cuci, mesin fotocopy dan juga mesin jahit anda dapat melihat daftar harganya pada situs kami dengan cara Baca Artikel yang mana di dalamnya kami telah membahas harga yang di serta spesifikasi yang mana semoga bermanfaat untuk kita semua. Jika anda sedang bingung untuk membuka suatu usaha yang menjanjikan maka langsung saja lihat artikel yang kami sediakan, dimana pada artikel tersebut kami membahas referensi peluang usaha yang dapat anda jalankan dengan sangat mudah.

Hasan said...

top info

bibit durian unggul
budidaya durian unggul
bibit durian bawor
budidaya tanaman durian
bisnis durian
bibit durian
bibit durian
budidaya durian
bibit durian bawor
manfaat durian
bibit durian unggul
bibit durian montong
bibit durian sunan

Hasan said...

cara budidaya kroto
cara budidaya kroto
budidaya kroto
budidaya kroto
budidaya kroto
budidaya kroto
budidaya kroto
Budidaya Kroto
budidaya kroto
cara panen kroto
bibit kroto
bibit kroto
budidaya kroto
budidaya kroto
bisnis kroto
bibit kroto

Hasan said...

Backlink untuk jahe merah
budidaya jahe merah
jahe merah
budidaya jahe merah
budidaya jahe merah
budidaya jahe merah
budidaya jahe merah
budidaya jahe merah
budidaya jahe merah organik

Ethan jurk said...

View and Download Canon PIXMA iP8720 beginning manual on the web. Recovering Your Printer On Your Network After A Router Or Network Change Windows OS. ip8720 Wireless Printer Setup manual.

augustwalker said...

Setup HP Deskjet 3630 Printer your HP Deskjet 3630 effortlessly and get brisk investigating tips. Additionally, download the gadget drivers from 123.hp.com/arrangement 3630