Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Embedded jetty filter mapping on multiple path


FIlterHolder holder = contextHandler.addFilter(MyFilter.class, "/x/*",
EnumSet.of(DispatcherType.REQUEST));
holder.addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST),
true, "/y/*");


Hi,

thanks a lot for the hint.
I saw that tight now with the latest api you can achieve this using this code:

FilterHolder myFilter = contextHandler.addFilter(
MyFilter.class, "/x/*",EnumSet.of(DispatcherType.REQUEST));
myFilter.getRegistration().addMappingForUrlPatterns(EnumSet.of(DispatcherType.REQUEST),true, "/y/*");

since the filder holder does not have
addMappingForUrlPatterns method.
Thanks again for the help.

Andrea.




Il presente messaggio di posta elettronica, inclusi eventuali documenti allegati, potrebbe avere carattere riservato ed essere tutelato dal segreto professionale ed è ad esclusivo utilizzo del destinatario indicato in indirizzo. Qualora non foste il destinatario del presente messaggio Vi preghiamo di volerci avvertire immediatamente tramite posta elettronica o telefonicamente e di cancellare il presente messaggio e ogni documento ad esso allegato dal Vostro sistema. Ne è vietata la duplicazione o l’utilizzo per qualsiasi fine, così come la relativa divulgazione, distribuzione o inoltro a terzi senza l’espressa autorizzazione del mittente, il quale, in ragione del mezzo di trasmissione utilizzato, non assume alcuna responsabilità in merito alla segretezza e riservatezza delle informazioni contenute.

This e-mail and any file transmitted with may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. If you are not intended recipient of this e-mail, please do not read this e-mail and notify us immediately by reply e-mail or by telephone and then delete this message and any file attached from your system. You should not copy or use it for any purpose, disclose the contents of the same to any other person or forward it without express permission. Considering the means of the transmission, we do not undertake any liability with respect to the secrecy and confidentiality of the information contained in this e-mail and in its attachments.

Back to the top