|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.process.internal.LinearRequestProcessor
public class LinearRequestProcessor
A composite linear acceptor request processor.
invoked, the supplied data are first
transformed by the nested linear stage chain. Once a terminal stage is reached
a continuation is returned with the transformed request on the left side
and the inflector (optionally) provided by the terminal stage
on the right side.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage |
|---|
Stage.Root |
| Constructor Summary | |
|---|---|
LinearRequestProcessor(LinearAcceptor rootAcceptor,
org.glassfish.hk2.Factory<StagingContext<Request>> contextProvider)
Construct a linear acceptor 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 |
| Methods inherited from interface com.google.common.base.Function |
|---|
equals |
| Constructor Detail |
|---|
public LinearRequestProcessor(@Stage.Root
LinearAcceptor rootAcceptor,
org.glassfish.hk2.Factory<StagingContext<Request>> contextProvider)
linear acceptor request processor.
rootAcceptor - head of the nested linear stage chain to be run.contextProvider - provider of the staging context to be invoked
before and after each stage is 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 transforms the request using a nested linear stage chain.
Once a terminal stage is reached a continuation is returned with the transformed
request on the left side and the inflector (optionally)
provided by the terminal stage on the right side.
apply in interface com.google.common.base.Function<Request,Pair<Request,com.google.common.base.Optional<Inflector<Request,Response>>>>apply in interface RequestProcessorapply in interface Stage<Request,com.google.common.base.Optional<Inflector<Request,Response>>>request - 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 | |||||||||