Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: correct spelling error


The Handler is the component that deals with received requests. The core API of a handler is the handle method:

Code Block
  public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch)
    throws IOException, ServletException;

An implementation of this method may handle the request, pass the request onto another handler (or servlet) or may modify and/or wrap the request and then pass it on. This gives three styles of Handler:

  1. Coordinating Handlers - Handlers that route requests to other handlers (eg HandlerCollection, ContextHandlerCollection)
  2. Filtering Handlers - Handlers that augment a request and pass it on to other handlers (eg. HandlerWrapper, ContextHandler, SessionHandler)
  3. Generating Handlers - Handlers that produce content (eg ResourceHandler and ServletHandler)


Essentially the WebAppContext is a conveniance convenience class to assist the construction and configuration of other handlers to achieve a standard web application configuration.


Contact the core Jetty developers at
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery