File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Languages and the fly likes How to differentiate between a normal get  post handling and rest architecture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "How to differentiate between a normal get  post handling and rest architecture" Watch "How to differentiate between a normal get  post handling and rest architecture" New topic
Author

How to differentiate between a normal get post handling and rest architecture

mayur dhawan
Greenhorn

Joined: Sep 20, 2005
Posts: 29
Hi,

I am new to web 2.0 and REST.I have read some articles on REST .I could understand that the REST is a design pattern and in this , every item/thing to be exposed is treated as a URL.The client will hit this URL and get the resource.

So, I am confused that a normal get request on a URL, that is send on a servlet and processed.Is this the REST way.If yes , then we are doing it since the start of coding what's new in this. If no then please explain what extra needs to be done.

thanks in advance
mayur
Tina Ma
Ranch Hand

Joined: Nov 29, 2007
Posts: 198
REST uses a remote resource as an url instead of the elaborate remote procedure call.


Tina
SCJP 1.4, SCWCD 1.4
Ben Scofield
author
Greenhorn

Joined: May 20, 2008
Posts: 29
Actually, I think you're pretty much correct - REST is a lot like the very first web pages a lot of us built, where a single URL corresponds to a single chunk of information. That resemblance is intentional, as REST was modeled in part on the early web.

One difference arises when you start to look at more complicated applications - instead of a multitude of pages, you get one (or a few) endpoints that you can access, each of which distributes your request to any one of many destinations.

Another difference is the restriction of actions to particular HTTP verbs - GET, in a RESTful system, for instance, is idempotent. POST is used to create a new resource. PUT is used to update an existing resource (or create a new one, in certain cases). DELETE is used to destroy an existing resource.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to differentiate between a normal get post handling and rest architecture