Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Handling several /path* with different handler in the most efficient method possible

Hello list,

I'm moving code that is implemented using several servlets to be jetty (embedded) based service.
I've looked at the various examples / documentation where it mentioned that using ServletContextHandler is often too much of an overhead solution for something simple as context routing.

I don't need sessions / security in my request handling.

I have several Servlets (Servlet1, Servlet2, Servlet3) which I would like to configure handlers for on the following paths:

/servlet1 = Servlet1
/test/servlet2 = Servlet2
/ = Servlet3

How would you recommend me implementing this with jetty?

Thank you,
Maxim.

Back to the top