You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Drasko Kokic <dr...@yahoo.com> on 2001/02/09 18:09:03 UTC

[T3.2.1] differences between different Request classes

Hi there,

I am trying to implement our SingleLogin architecture
using the Servlet API 2.2 recomendations.  

I would like to know why
org.apache.tomcat.core.Request
is not implementing methods from
javax.servlet.http.Request?

The error message is:

    [javac]
D:\Apache-Group\src\jakarta-tomcat-3.2.1-src\src\share\org\apache\tomcat\request\CookieRealm.java:125:
Method getCookies() not found in interface
org.apache.tomcat.core.Request.
    [javac]         Cookie cookies[] =
request.getCookies();

and only work around is to use getCookie(i) method
?!?!

TIA
Drasko

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Re: [T3.2.1] differences between different Request classes

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Drasko Kokic wrote:

> Hi there,
>
> I am trying to implement our SingleLogin architecture
> using the Servlet API 2.2 recomendations.
>
> I would like to know why
> org.apache.tomcat.core.Request
> is not implementing methods from
> javax.servlet.http.Request?
>

I assume you really mean javax.servlet.http.HttpServletRequest, right?

If so, the actual implementation classes for the servlet APIs are in
separate "facade" classes.  To get
ahold of one, simply call the getFacade() method on the Request object.

NOTE:  You should also know that Tomcat 4.0 already supports this
feature.

Craig McClanahan