----------------------------------------------------------------
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]

Reply via email to