cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eamonn Dwyer <eamdwyer...@hotmail.com>
Subject RE: Capturing the JaxRS outbound request data
Date Fri, 07 Aug 2009 16:38:20 GMT

Hi Sergey
the LoggingOutInterceptor can capture the data from various locations (from the message) and
build up a log representing the outbound request but I dont think its the EXACT data being
sent to the server as the HTTP request. I am writing an interceptor that monitors the data
passed from the client to server and I want to get it exactly. 

My last patch was for something a bit different - it stopped calls to connection.getResponseCode()
if an exception was thrown on the outbound interceptor chain - Dan applied that patch and
it seems to be working fine now.

Regs
Eamonn

> Date: Fri, 7 Aug 2009 05:24:55 -0700
> From: sergey.beryozkin@iona.com
> To: dev@cxf.apache.org
> Subject: Re: Capturing the JaxRS outbound request data
> 
> 
> Hi Eamonn
> 
> Perhaps you can do the same way the (out) logging interceptor does it ? Can
> it capture the outbound message on the client side ?
> 
> > connection.getResponseCode()
> 
> I thought your latest patch has fixed it ?
> 
> thanks, Sergey
> 
> 
> Eamonn Dwyer-2 wrote:
> > 
> > 
> > Hi
> > is there a way of getting the exact stream of data sent by a JaxRS client
> > to the service. As far as I can make out the JaxRS client populates the
> > HttpURLConnection directly with the data and the call to
> > connection.getResponseCode() results in the HttpURLConnection marshalling
> > up the data and sending it on the wire. I don't see how I can get a hook
> > to get the raw data.
> > 
> > The issue doesn't seem to be the affect the response because in that case
> > the JaxRSOutInterceptor comes into play and it writes the data to the
> > CacheAndWriteOutputStream first.
> > 
> > Thanks in advance
> > Eamonn
> > 
> > _________________________________________________________________
> > What can you do with the new Windows Live? Find out
> > http://www.microsoft.com/windows/windowslive/default.aspx
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Capturing-the-JaxRS-outbound-request-data-tp24848337p24863892.html
> Sent from the cxf-dev mailing list archive at Nabble.com.
> 

_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message