tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Making AJP secret attribute consistent
Date Fri, 14 Aug 2009 02:35:24 GMT
Since Mark has already removed the o.a.jk connector from trunk, I'd prefer 
to just fix the docs there and use requiredSecret etc. In the other branches 
it is easy enough to teach the o.a.jk connector to accept requiredSecrect as 
an alias for request.secrect, so even here I'd vote to add the alias and 
change the docs.

"Konstantin Kolinko" <> wrote in message
2009/8/13 Mladen Turk <>:
> On 13/08/09 19:43, Konstantin Kolinko wrote:
>>> Other option is to use required.secret instead requiredSecret
>>> Much easier because requiredSecret isn't document, so one
>>> can only find it browsing the source code.
>>> However dunno how to make it using current property set/get methods
>> I have just noticed - the following patch (as currently proposed for
>> tc6.0) is an example of implementing such a dot property
>> ("socket.unlockTimeout"):
>> * Improve NIO connector shutdown time by doing shutdowns in parallel
>> and with a timeout
>> I have not dug into details yet, though.
> It looks like magic ;)
> I always thought that setName(...) reflects name="...",
> now it seems it's possible to have setName(...) and"..."

... The implementation, in this case, is in NioEndpoint#setProperty()
        final String selectorPoolName = "selectorPool.";
        final String socketName = "socket.";
            if (name.startsWith(selectorPoolName)) {
                return IntrospectionUtils.setProperty(...);
            } else if (name.startsWith(socketName)) {
                return IntrospectionUtils.setProperty(...);
            } else {
                return IntrospectionUtils.setProperty(this,name,value);

and it is o.a.tomcat.util.IntrospectionUtils#setProperty(..) that
looks for the "setProperty" method if explicit setter is not

Best regards,
Konstantin Kolinko 

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

View raw message