Class Rule.Handler
- All Implemented Interfaces:
- Content.Source, Request, Attributes
- Direct Known Subclasses:
- Rule.HttpURIHandler
- Enclosing class:
- Rule
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.
- 
Nested Class SummaryNested classes/interfaces inherited from interface AttributesAttributes.Layer, Attributes.Lazy, Attributes.Mapped, Attributes.SyntheticNested classes/interfaces inherited from interface Content.SourceContent.Source.FactoryNested classes/interfaces inherited from interface RequestRequest.AttributesWrapper, Request.AuthenticationState, Request.Handler, Request.ServeAs, Request.Wrapper
- 
Field SummaryFields inherited from interface AttributesNULLFields inherited from interface RequestCOOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class Request.WrapperaddFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, asAttributeMap, clearAttributes, consumeAvailable, demand, fail, getAttribute, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeaders, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getSession, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Attributesequals, hashCodeMethods inherited from interface Content.Sourcefail, rewind
- 
Constructor Details- 
Handler
- 
Handler
 
- 
- 
Method Details- 
handleHandles this wrapped request together with the passed response and callback. This method should be overridden only if the rule applies to the response, or the rule completes the callback. By default this method forwards the handling to the next Rule.Handler. If a rule that overrides this method is non-terminating, it should call thesuperimplementation to chain the rules.
 
-