Class Rule.Handler

java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.rewrite.handler.Rule.Handler
All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source, org.eclipse.jetty.server.Request, org.eclipse.jetty.util.Attributes
Direct Known Subclasses:
Rule.HttpURIHandler
Enclosing class:
Rule

public static class Rule.Handler extends org.eclipse.jetty.server.Request.Wrapper

A Request.Wrapper used to chain a sequence of Rules together.

The first Rule.Handler is initialized with the initial Request, then it is passed to a chain of Rules, which in turn chain Rule.Handlers together. At the end of the Rule applications, Rule.Handlers are chained so that so that the first rule produces the innermost Handler and the last rule produces the outermost Handler in this way: RH3(RH2(RH1(Req))).

After the Rule applications, the Rule.Handlers are then called in sequence, starting from the innermost and moving outwards with respect to the wrapping, until finally the Request.Handler.handle(Request, Response, Callback) method of the child Handler of RewriteHandler is invoked.