Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How to access HTTP Response Headers with Axis Handlers

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to log HTTP Headers using Apache Axis 1.1 (may upgrade Axis2 eventually).

I am able to fetch the HttpServletRequest from the handler and log the request HTTP headers using that, but I cannot figure out how to access the response HTTP headers since HttpServletResponse does not seem to provide access to that information. Is there a way to get at this information with Axis?

My technique for getting the request HTTP headers is like this by the way:



Is there way to do something similar with the response?

Also is there a way to have my handler run last in Axis 1.1?
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think accessing outgoing http headers is feasible. It's because they are added by the application server to the final output. Using an Axis2 handler you can however access the entire SOAP response (including SOAP headers). If you want to access outgoing http headers, look at how you can do it in your application server. You may also use a proxy server for the same purpose.
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic