On Wed, 28 May 2003, Remy Maucherat wrote:

> Date: Wed, 28 May 2003 00:13:31 +0200
> From: Remy Maucherat <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: Tomcat Developers List <[EMAIL PROTECTED]>
> Subject: Re: cvs commit:
>     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm
>     RealmBase.java
>
> Bill Barker wrote:
> >>remm        2003/05/27 10:02:36
> >>
> >>  Modified:    catalina/src/share/org/apache/catalina/realm RealmBase.java
> >>  Log:
> >>  - Refactor without using SSL URLs, similar to what is done for
> > I really don't like the redirect to "https:host:443/...".  The easiest fix
> > would have been to simply change the import from "java.net.URL" to
> > "org.apache.catalina.util.URL" (or "org.apache.tomcat.util.net.URL", they
> > are much the same).
>
> sendRedirect does the same (and I think it used to use java.net.URL,
> then org.apache.catalina.util.URL). Isn't there a reason for doing
> things like that ?
> It's a bit confusing ...
>

Historical background (although it's fading somewhat :-) ... the
Authenticator implementation used to use java.net.URL when a transport
guarantee said we needed to switch to SSL.  Unfortunately, this meant that
you couldn't redirect to an SSL-based URl unless you had JSSE installed
(which made the corresponding URLStreamHandler available by default).  We
created o.a.c.u.URL to solve that problem, and it probably can be used for
the same purpose anywhere else in Catalina that java.net.URL is used.

Of course, if we were willing to depend on JDK 1.4 we could use
java.net.URI for this kind of thing ...

> Remy

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to