• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

What does state transfer in REST means ?

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • 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
  • 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/
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic