|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jetty.embedded.ManyHandlers
public class ManyHandlers
Frequently many handlers are combined together to handle different aspects of a request. A handler may:
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.
Nested Class Summary | |
---|---|
static class |
ManyHandlers.ParamHandler
|
Constructor Summary | |
---|---|
ManyHandlers()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManyHandlers()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |