tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Olsen <gr...@maven-group.org>
Subject [PATCH] Change getSession() in org.apache.catalina.Session from HttpSession to a more general interface (enhancement request 21169)
Date Sun, 29 Jun 2003 07:31:52 GMT
Hey Guys,

I just made a proposed patch for the enhancement request I made 
regarding the SIP Servlet API
http://issues.apache.org/bugzilla/show_bug.cgi?id=21169

It adds a new interface org.apache.catalina.ServletSession that contains 
the methods that HttpSession has in common with
SipSession and SipApplicationSession.

The interface changes are non-intrusive meaning that it changes or adds 
no functionality so if a class implements HttpSession it will also
implement all the methods in ServletSession.

To make catalina support the new interface have have made the following 
changes:
org.apache.catalina.Session - changed to return a ServletSession in the 
getSession() method
org.apache.catalina.session.StandardSession - makes it implement 
ServletSession and typecasts to HttpSession where needed.
org.apache.catalina.session.StandardSessionFacade - makes it implement 
ServletSession
org.apache.coyote.tomcat5.CoyoteRequest - typecasts from ServletSession 
to HttpSession in the getSession( boolean )

- Brian

Mime
View raw message