You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2010/12/14 22:08:28 UTC

Setting Connector attributes

All,

I was looking at
https://issues.apache.org/bugzilla/show_bug.cgi?id=49711 and starting to
write a patch which involves a new Connector option.

I noticed that (for example) Connector.setUseBodyEncodingForURI sets
it's own state, then calls setProperty("useBodyEncodingForURI", ...)
which sets an equivalent property on the protocol handler being used for
the connector.

Other setters, such as setMaxPostSize, do not call setProperty (though
setMaxSavePostSize does). Should all setters call setProperty and should
all protocol handlers mirror all properties, or is there some rule of
thumb I can use to determine whether my new property should be added to
the protocol handler and then use setProperty?

Thanks,
-chris