> I see the trick: the various AddressMarker.XXX are not final,
> so you could code the static {try {...}...} block without
> getting the compile error!

Right. :-)  But it is private, and used to initialize the final members of
the visible class.

> > By the way, should the SpecialAddress markers be treated
> > as case insensitive?

> What do you mean? Right now in the Redirect code only the equals
> method is used, which does an equalsIgnoreCase on the user and
> host parts.

I was refering to the use of String.compareTo, e.g.,

  String addressList = getInitParameter("recipients");
  if(addressList.compareTo("sender") == 0) {
    newRecipients.add(SpecialAddress.SENDER);
  }

If you look at getTypeCode, you'll see how we convert to lower case before
comparing.  Perhaps it would be good to have a getSpecialAddress that is
similar to getTypeCode, and returns null if the address isn't one of the
special ones.

Sounds like you're doing great work.  :-)  Looking forward to seeing it.

        --- Noel


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

Reply via email to