What about valves which are added programmatically within the same engine?
Is it possible to control the order?




On Mon, Mar 23, 2020 at 4:14 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Mark,
>
> On 3/23/20 09:59, Mark Thomas wrote:
> > On 23/03/2020 13:13, Jonathan Yom-Tov wrote:
> >> I'm trying to create a valve which will prevent another valve
> >> from working in case a particular request is made. Is there a way
> >> to control the valve execution order so that I can inject my
> >> valve right before the valve I want to stop?
> >
> > Valves should be added (and hence executed) in the order they
> > appear in the XML.
> >
> > Also, Valves on an Engine always execute before those on a Host
> > which always execute before those on a Context.
>
> Correct me if I'm wrong, but there is one more caveat: if the
> <Context> defines its own Authenticator, then whatever Authenticator
> Tomcat would have also automatically added is in fact NOT added.
>
> Where does the context's authentication valve go in that situation? In
> the position where the default one would have gone, or in the
> <Context>'s position according to the XML?
>
> - -chris
>
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl54xE0ACgkQHPApP6U8
> pFiVHg/+NslxaBe+HThPGSoKS4+VLoHJ/T9ph9ksSDB7YrCBNs6D3NAjwtodmQ4m
> bNF1YmCrm40fcOSe5e4LH74GOFEUKK8VAQ0O0ZVPVljt/RuttmtgCQMHbKEk3FVx
> vPGe9ED6ouNvOjpib6LIoYlQHk1gJcK9joEMHfB4NTT9VM9/QFbgscC1LIeBmk5i
> 4xzsZ1JAajWWJ7mj6kkkyJuUi8CKeeZL+U9kEqDyObTj0ODFpSekv5xmZ3Qoklds
> YmYM00VaMn6R3pZpodk5Ha3/+uzUavEoGJ05Sz6/YIyDedZChAqsvkyAM/klpmYl
> Rd1yiYOqi8zVdndpsrnMoCI5TCmTNuLrUZ44jP1e9kiaZe6bN7+FHyAD0O0SQXaS
> XYvQIgb31MrVX4Q+zFoSHjbHfAaITGER/08X3hj1sOeFQc2i0E6IWLltfuXwG4tW
> jMv/xcCWnkBBylU/grRNF/91Ym4QyZtbUhFKkb64Jrs6Hy24aG9j06rqTI7bxqnL
> hMs5q0bjM6XbmuGoYnS60CKQBL3kwsfyJvbbB5n1X5vyg8LkE/6uYMp67/kIS+M2
> x9uk2ESfOgVj5yZYjxs/pZcWIjU1VdnTVN9vp16RTlR2vwoGCTQ6IouKYaYEiM3u
> l83uObuBW8VcX+QEChSZn8rgSZKLG9xkQr+otFc/oVBPFtW0tJA=
> =t6Nj
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to