|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.process.internal.HierarchicalRequestProcessor
public class HierarchicalRequestProcessor
A composite hierarchical request processor.
invoked, the supplied request is continuously
transformed by the nested acceptor hierarchy using a depth-first
transformation strategy until a request-to-response inflector is
found on a leaf stage node, in which case the hierarchical
stage transformation is terminated and a continuation with the transformed
request on the left side and the inflector on the
right side is returned.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.RequestProcessor |
|---|
RequestProcessor.AcceptingContext |
| Constructor Summary | |
|---|---|
HierarchicalRequestProcessor(TreeAcceptor rootStage)
Construct a hierarchical request processor. |
|
| Method Summary | |
|---|---|
Pair<Request,com.google.common.base.Optional<Inflector<Request,Response>>> |
apply(Request request)
Traverse through the nested request stages and apply request transformations until a terminal stage providing a request-to-response inflector
is reached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HierarchicalRequestProcessor(TreeAcceptor rootStage)
hierarchical request processor.
rootStage - head of the nested stage hierarchy to be applied.| Method Detail |
|---|
public Pair<Request,com.google.common.base.Optional<Inflector<Request,Response>>> apply(Request request)
providing a request-to-response inflector
is reached. If the terminal stage does not provide an inflector, the inflector
returned on the right side of the continuation will
be absent.
This implementation applies the nested acceptor hierarchy
using a depth-first transformation strategy until a request-to-response
inflector is found on a leaf stage node, in which case
the hierarchical stage transformation is terminated and a continuation with
the transformed request on the left side and the inflector
on the right side is returned.
apply in interface RequestProcessorrequest - request data to be transformed
left side and the (optional) request-to-response inflector on the
right side.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||