loyalflow
loyalflow

Reputation: 14879

Jetty mapped to 2 urls for same handler?

When creating an embedded jetty instance and mapping a url pattern to a particular handler, is it possible to map multiple urls to the same servlet handler?

Upvotes: 2

Views: 657

Answers (1)

Uwe Plonus
Uwe Plonus

Reputation: 9954

Yes this should be possible (as it is possible also with webapps).

As you create a ServletHandler you can add multiple ServletMappings via addServletMapping() to this handler.

Upvotes: 3

Related Questions