• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What does state transfer in REST means ?

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I understand that different representations of a resource can be sent from the server to client. But what does state transfer means. I googled it but not able to understand what it actually means and where is that state maintained. Shouldn't it be just RET , representation transfer
 
Greenhorn
Posts: 14
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
State means at any particular time the values that an object hold. You can think it like an instance/object of a class holding some values at a particular time. So that is the state of that object. State transfer means transferring these values to a particular component.

REST is stateless because each request is self explanatory i.e. each request contains all the information that is needed by the requested resource and it does not depend on any previous state. Below link might help you on this...

https://looselyconnected.wordpress.com/2011/02/07/rest-what-is-state-anyway/
 
reply
    Bookmark Topic Watch Topic
  • New Topic