On Wed, Jul 8, 2020 at 4:26 PM Christopher Schultz <
ch...@christopherschultz.net> wrote:

> >> Clearly, no, with multiple elements, the digester rules added to
> >> ContextRuleSet would be something like (in addition to the
> >> unchanged ones for CookieProcessor):
> >
> > digester.addObjectCreate(prefix + "Context/CookieProcessor",
> >
> >> "org.apache.tomcat.util.http.Rfc6265CookieProcessor",
> > "className"); digester.addSetProperties(prefix +
> > "Context/CookieProcessor"); digester.addSetNext(prefix +
> > "Context/CookieProcessor", "setCookieProcessor",
> > "org.apache.tomcat.util.http.CookieProcessor");
> >
> > digester.addObjectCreate(prefix +
> >> "Context/CookieProcessor/SameSiteCookie",
> >
> >> "org.apache.tomcat.util.http.SameSiteCookie",
> > "className"); digester.addSetProperties(prefix +
> >> "Context/CookieProcessor/SameSiteCookie");
> > digester.addSetNext(prefix +
> >> "Context/CookieProcessor/SameSiteCookie",
> > "addSameSiteCookie",
> > "org.apache.tomcat.util.http.SameSiteCookie");
> >
> >> If the bean class is org.apache.tomcat.util.http.SameSiteCookie.
>
> So you are okay with:
>
>   digester.addSetProperties(prefix +
> "Context/CookieProcessor/SameSiteCookie");
>
>
> But not with:
>
>   digester.addCallMethod(prefix +
> "Context/CookieProcessor/SameSiteCookie/Cookie");
>
> ?
>

The digester works best with beans so I don't see what is so surprising
about this.

Rémy


>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8F150ACgkQHPApP6U8
> pFiyDg//Q/GZr5CpEAtGSpLzDe78kYSDmBrZ3BCif+RBJvOUEarcpBskEDcjo3ux
> uEYUQM4e+AniE3DzdL/3L7AYiaAZc5vwaKF1zE0OkisHJauYybRxPdhr0CwiKQ5R
> /TkPNPc03nwzN/mYvSGUtVo/pyBkJ+2gX8bTFzkBrcha7F+6+lHmGzTpTgKYZVXQ
> +DjmyiHvpSqmrvITYTo4NvNGKMckYzQ1hFXfzlW8fEsJsfxffAZqi3Sz1UikCs8F
> /Tj12b814wNemtMR7nITWObCIGLYt8Xkv+Rv9kbglqsNSmGDv58f8CYGQjk4Mvk7
> JEnLdSexEm979w+QNce3oibTVWdZjab2f1lLotTvcMIMenGHTefmpxlCQCjdMC0l
> WT9EfAJUKC9bUMiysFUgce8DwYFBi9wmkKjBLtl0+Nynyt4GJIMKZlxAocgcEBs6
> BqTa8G8xooC8/x5JSgWEu3r29Zn0zrHE4DJbH4egsoTVH3+U4FjsvMz/4lb/8hK+
> RtRQxNJmPFutw1DEOSxbceahXVpjOXFs8KI09k+uz5OAY1C3alE3h9ig4PzjNzyS
> N9fQ8XlCB+f9Agthjqbc3pNEDP2m2azuex6Wh4k72cyw6IGPreWO4rMTN4sTjGpg
> ibsVK2ZBl7ssxVsgYfAk0r3FV6SAgP6LqhPAYqt1oDPDLcW5f5Y=
> =Q7g+
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>

Reply via email to