• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JavaFx and RESTFul services

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

What type of data can be processed using JavaFX? Is it compatible with RESTFul services?

If I get response in JSON format, how can I parse it?
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are many JSON parsers out there. Why do you think it'd be any different than in any other Java application?
 
Author
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Nikes,

Good question. JavaFX supports RESTful web services with class HttpRequest and parsing with pull parser classes for JSON and XML. Our book shows you how to use this technology (Chapter 9: Web Services) and ends with a cool animated carousel displaying photos from flickr. No need to dip down into Java for this.
 
Bear Bibeault
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now that's cool!
 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks all for quick reply

Actually I am doing R&D on one opensource ECM product "Alfresco".

In this product there is new type of API called WebScripts. It supports calling mechanism like URL.
Alfresco people say that RESTFul access is faster than others.

Our company wants to develop some custom web app which talks with Alfresco.

So just thinking JavaFX and RESTFull api of Alfresco combination.

Thanks,
Nikesh

 
author
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, the book "JavaFX: Developing Rich Internet Applications" has an entire chapter dedicated to JavaFX and REST, including using XML and JSON-based web services. You can check this out here: http://www.informit.com/store/product.aspx?isbn=013701287X

Also, you can find sample code for all of this at www.jfxbook.com

-Eric
 
And inside of my fortune cookie was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic