Solved

Response headers

Posted on 2004-04-27
1
207 Views
Last Modified: 2010-04-01
Is there any way to read response header names and their values as we have in case of request headers ?

Regards,

0
Comment
Question by:allahabad
1 Comment
 
LVL 7

Accepted Solution

by:
mark-b earned 100 total points
Comment Utility
Nope, not generically (that I know of).  You can check for their existence:

res.containsHeader( header)

but you can't get the values.  One option I can think of is to use the underlining response implementation by the servlet engine (by casting)-- you might be able to get to them that way.  Another option is to create your own implementation of the http servlet response that implements HttpServletResponse and defers to the contained 'real' http servlet response.  In your implementation, the pertinent methods that are around the headers would capture the names and values and then pass them on the contained response.  Just an idea..

-Mark
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maven scope 1 120
library class in java 1 89
maven webservice example issue 2 86
java operators 3 87
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now