org.glassfish.jersey.server.internal.routing
Class RoutingStage

java.lang.Object
  extended by org.glassfish.jersey.process.internal.AbstractChainableStage<ContainerRequest>
      extended by org.glassfish.jersey.server.internal.routing.RoutingStage
All Implemented Interfaces:
ChainableStage<ContainerRequest>, Stage<ContainerRequest>

public class RoutingStage
extends AbstractChainableStage<ContainerRequest>

Request pre-processing stage that encapsulates hierarchical resource matching and request routing. Once the routing is finished, an inflector (if found) is stored in the routing context.

Author:
Marek Potociar (marek.potociar at oracle.com)
See Also:
RoutedInflectorExtractorStage

Nested Class Summary
static class RoutingStage.Builder
          Injectable resource matching stage builder.
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Continuation<DATA>
 
Method Summary
 Stage.Continuation<ContainerRequest> apply(ContainerRequest request)
          

Routing stage navigates through the nested routing hierarchy using a depth-first transformation strategy until a request-to-response inflector is found on a leaf stage node, in which case the request routing is terminated and an inflector (if found) is pushed to the routing context.

 
Methods inherited from class org.glassfish.jersey.process.internal.AbstractChainableStage
getDefaultNext, setDefaultNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

apply

public Stage.Continuation<ContainerRequest> apply(ContainerRequest request)

Routing stage navigates through the nested routing hierarchy using a depth-first transformation strategy until a request-to-response inflector is found on a leaf stage node, in which case the request routing is terminated and an inflector (if found) is pushed to the routing context.



Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.