[servlet] Allow to set next filter in different ways