Wolfgang Baer wrote:
Hi all,

Wolfgang Baer wrote:

Hi,

David Daney wrote:

Perhaps make isError() a member of Response

Yes, I also thought of this. Its in HTTPURLConnection because there is
already a method isRedirect(Response r). Both should be moved to Response.


Committed as attached. Changes over the previous patch are the move of the
isRedirect() and isError() methods to Response.java.

2006-02-09  Wolfgang Baer  <[EMAIL PROTECTED]>

        * gnu/java/net/protocol/http/HTTPURLConnection.java:
        (isRedirect): Removed, moved to Response.java.
        (connect): If error condition redirect responseSink to errorSink.
        (getInputStream): If error condition throw IOException, for the error
        codes 404 and 410 throw a FileNotFoundException.        
        * gnu/java/net/protocol/http/Response.java (isError): New method.
        (isRedirect): New method, moved from HTTPURLConnection.java.

Wolfgang

Thanks, please update: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26081 as appropriate.

If this fixes that bug (which I think it does) the changelog should be prefixed with 'PR classpath/26081'

David Daney


Reply via email to