commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Dever <jsde...@sympatico.ca>
Subject [httpclient][patch] HttpStatus default credential handling
Date Tue, 16 Jul 2002 02:43:13 GMT
The HttpStatus class has the concept of a default credential.  The
handling of it is inconsistant however.

The setCredentials would state that you could use null as the realm to
flag the default credential.  Thats fine.
The getCredentials would return null if the specified realm could not be
found.  Well hey, whats that default for again?  You have to give a null
realm to get back the "default".  This makes no sense, and forced user
code to call getCredentials twice to get a credential, once with a
realm, and if that fails with a null realm.

This patch addresses this inconsistancy.

A new test class was added (attached seperately) as there were no
HttpState tests already present.



Mime
View raw message