Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt - Header  RSS feed

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..
Is it possible to have a custom header with request and/or response objects?
How can we do that?
How to access them?

Thanks.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're talking about request/response headers, they can only be set and retrieved as String, int or date (long).

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to retrieve that..
Is it associated with request object/response object..
Is there getters for that in the API..
 
Raghavan Muthu
Ranch Hand
Posts: 3389
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes they are very much available in the API.

The getters are avaiable with the Request Objects whereas the setters are available with Response Objects.

HtH.

[ May 29, 2007: Message edited by: Raghavan Muthu ]
[ May 29, 2007: Message edited by: Raghavan Muthu ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!