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

java.lang.Object
  extended by org.glassfish.jersey.server.internal.routing.AbstractPushRoutingInfoAndDelegateTreeAcceptor
      extended by org.glassfish.jersey.server.internal.routing.PushResourceUriAndDelegateTreeAcceptor
All Implemented Interfaces:
com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,Iterator<TreeAcceptor>>>, Stage<javax.ws.rs.core.Request,Iterator<TreeAcceptor>>, TreeAcceptor

public class PushResourceUriAndDelegateTreeAcceptor
extends AbstractPushRoutingInfoAndDelegateTreeAcceptor

A wrapper, which will push both the current resource and the actual URI path to the routing context before delegating to the encapsulated acceptor.

Author:
Jakub Podlesak (jakub.podlesak at oracle.com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.TreeAcceptor
TreeAcceptor.Builder
 
Nested classes/interfaces inherited from interface org.glassfish.jersey.process.internal.Stage
Stage.Root
 
Constructor Summary
PushResourceUriAndDelegateTreeAcceptor(org.glassfish.hk2.inject.Injector injector, ResourceClass resource, TreeAcceptor wrappedAcceptor)
          Constructs a new wrapper.
 
Method Summary
 
Methods inherited from class org.glassfish.jersey.server.internal.routing.AbstractPushRoutingInfoAndDelegateTreeAcceptor
apply
 
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

PushResourceUriAndDelegateTreeAcceptor

public PushResourceUriAndDelegateTreeAcceptor(org.glassfish.hk2.inject.Injector injector,
                                              ResourceClass resource,
                                              TreeAcceptor wrappedAcceptor)
Constructs a new wrapper.

Parameters:
injector - to be used to obtain the actual resource instance and routing context
resource - resource class model
wrappedAcceptor - this will be used to delegate the apply method invocation


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.