• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaFx and RESTFul services

 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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?
 
Gail Anderson
Author
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now that's cool!
 
Nikes Shah
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • 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

 
Eric Bruno
author
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic