tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 18500] Host aliases to match by regular expression
Date Tue, 27 Sep 2011 01:12:47 GMT

--- Comment #10 from Konstantin Kolinko <> 2011-09-27 01:12:47
UTC ---
(In reply to comment #9)
> I just wouldn't watch to mix-and-match too many name-matching styles or things
> are going to get seriously ridiculous (exact-match, then suffix-match, then
> regex-match, then what next?).
> The question is how many other strategies are worth implementing /after/ an
> exact-match is not found?

I think it is just a single strategy: iterate linearly over list, trying each
candidate whether it matches or not.

The candidate implements its matching algorithm by itself. For <Alias> value
written as *.foo it can be suffix matching, and for /foo/ it can be Regexp
matching. Or implement separate <AliasRegexp> element.

I do not see any alternative to linear search here.

The search order probably depends on the order in web.xml (and will change if
some hosts are stopped and started again through JMX or host-manager).

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message