cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Conner <Kevin.Con...@jboss.com>
Subject Re: FW: Transport API again
Date Tue, 10 Oct 2006 21:34:35 GMT
Dan Diephouse wrote:
>> Was Greg talking about the Jetty implementation?
>> The problem is we don't use Jetty on the client-side, instead we use 
>> the java.net.HttpURLConnection and I'm pretty sure that attempting to 
>> set a request header after calling HttpURLConnection.getOutputStream() 
>> will fail with an IllegalStateException.
> 
> Ah, I see now. Yes, he was talking about Jetty. I had just noticed that 
> you were using the wrappedoutputstream in the jetty response, so I 
> thought we could take that out.

With HttpURLConnection the request headers can be set anytime prior to a 
connect, therefore any method which causes a connect will be an issue.

	Kev



Mime
View raw message