For example we have one servlet (products). It can create product, delete product, update product.... The right action depends on the URI: example.com/products/UPDATE. So the question what is the best practice to choose the right action. I know about switch (not elegant), command patter (too many classes). What would you advise?