Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

who converts response object into Http response? container or web server?

 
Kiran Godishala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
In HFJS I could see in page 42 " the container converts response object into HTTP response" where as in page 61 it is said that the web server does that activity. Can any one conform which one is correct?
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kiran, welcome to javaranch.

The web server just passes client requests to the servlet container and the container is responsible for the conversion (I think so )...
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit is right!!

web container is responsible for providing , implementation details for all the required interfaces. like servletRequest OR httpServletRequest.
 
Kiran Godishala
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ankit and Poonam.

So I can conclude that the job of convertion from response object into HTTP response is done by container and hands it over to web server app which gives the same it to client, can I?
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic