Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Header doubt?

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

What exactly does the Enumeration getHeaders(String name) does?? They say that it returns and enumerated list of Headers with the name given as the parameter. But there can be only one header value associated with a given name right??
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There can be multiple values associated with one header name.

Thanks
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, got it thanks!
 
Raghavan Muthu
Ranch Hand
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jothi

thats why you have two different methods..

  • getHeader(String name) --> returns a String
  • getHeaders(String name) --> returns an Enumeration



  • If you want to get just the Header names alone, you can use getHeaderNames() which will also return an Enumeration containing the names alone.


    HtH.
     
    Atul Sawant
    Ranch Hand
    Posts: 304
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I also intially got confused since i was thinking it should be something like Enumeration getParamaterValues(String name) but it is...

    Enumeration getHeaders()

    Beware!
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic