----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi,

you could also extend the actual implementation of the HttpServletRequest
interface. I think that is  org.apache.jserv.JServConnection, but if you want
to be sure, print theRequest.getClass().getName() value in a servlet (where
theRequest is the HttpServletRequest parameter you receive).

You will have to modify some other JServ classes as well, to use your extended
version instead of the original one.


regards,

Johan Philippe

Henner Zeller:
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


Hi,
On Fri, 14 Jan 2000, Chris Busch wrote:
CB| I would like the change the behavior of getRemoteUser in the
CB| HttpServletRequest object that gets passed into the service call.
[...]
CB| I see two ways to accomplish this:
CB|  A. inheritance
CB|  B. Decorator Pattern (aka Wrapper)
[...]
CB| The annoying part of the decorator pattern is that I must define all of the
CB| methods of the HttpServletRequest interface and all of its super interfaces.
[...]
CB| Any advice?

 [ B ] is the way to go. Write a delegating (wrapping) class. There is no
portable way to use inheritance.

ciao,
 -hen



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to