Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get the value of reponse header

 
Kalai Ganesh
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Ranchers,

We check the availability of a response header by using
containsHeader(string s).
But is there a way to get the value of a given response header?

Thanks.
 
V Sharma
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Reponse wraps around the outputstream which we use to send data to the client.
If you check the complete API you will notice all the methods are either add/set/contains etc..

Nothing on retrieving the values. Because Reponse is means to be sent.Not read.

Hope this helps.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!