public class ManyHandlers extends Object
HandlerWrapper
which will nest one handler inside another. In
this example, the HelloHandler is nested inside a HandlerWrapper that sets
the greeting as a request attribute.
HandlerList
which will call a collection of handlers until the
request is marked as handled. In this example, a list is used to combine the
param handler (which only handles the request if there are parameters) and
the wrapper handler. Frequently handler lists are terminated with the
DefaultHandler
, which will generate a suitable 404 response if the
request has not been handled.
HandlerCollection
which will call each handler regardless if the
request has been handled or not. Typically this is used to always pass a
request to the logging handler.
Modifier and Type | Class and Description |
---|---|
static class |
ManyHandlers.ParamHandler
Produce output that lists all of the request parameters
|
static class |
ManyHandlers.WelcomeWrapHandler
Add a request attribute, but produce no output.
|
Constructor and Description |
---|
ManyHandlers() |
Copyright © 1995-2015 Webtide. All Rights Reserved.