Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Interception is a technique of Aspect Oriented Programming that allows an invocation to be enhanced with pre and post processing. Jetty 6 has been architected to support interception in many ways, plus there are many ways in which behaviour can be extended without interception. This page descibes some of the places in which extended behaviour can be added to Jetty 6.


Behaviour may be attached to a particular type of connector (eg SelectChanelConnector ) by extending the class and adding implementations of one or more of:


All connections and requests are channeled via the Server instance, so it may be extended to add interception style behaviour on one or more of the following methods:

  • called to dispatch a request to the server.


The Jetty server maintains a tree of Handlers that are mostly implemented as interceptors: Context, Session, Security and RequestLogare all implemented as interceptors based on WrappedHandler. These handlers add their behaviour as an aspect before passing the request down the chain of handlers. Additional
behaviour may be added by:

  • extending the handle method of existing handlers
  • writing new handlers that can be linked into the chain of handlers where required.


The Filter API is the standard in-context interceptor defined by the servlet specification. These allow portable interception of requests within the servlet spec.

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