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

java.lang.Object
  extended by org.glassfish.jersey.server.internal.routing.SubResourceLocatorAcceptor
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 SubResourceLocatorAcceptor
extends Object
implements TreeAcceptor

An acceptor to accept sub-resource requests. It first retrieves the sub-resource instance by invoking the given locator method. Then the RuntimeModelFromSubResource is used to generate corresponding acceptor. Finally the generated acceptor is invoked to return the request acceptor chain. TODO: implement generated sub-resource acceptor caching

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
SubResourceLocatorAcceptor(org.glassfish.hk2.inject.Injector injector, org.glassfish.hk2.Services services, MessageBodyWorkers workers, SubResourceLocator locator)
           
 
Method Summary
 Pair<javax.ws.rs.core.Request,Iterator<TreeAcceptor>> apply(javax.ws.rs.core.Request data)
           
 
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

SubResourceLocatorAcceptor

public SubResourceLocatorAcceptor(org.glassfish.hk2.inject.Injector injector,
                                  org.glassfish.hk2.Services services,
                                  MessageBodyWorkers workers,
                                  SubResourceLocator locator)
Method Detail

apply

public Pair<javax.ws.rs.core.Request,Iterator<TreeAcceptor>> apply(javax.ws.rs.core.Request data)
Specified by:
apply in interface com.google.common.base.Function<javax.ws.rs.core.Request,Pair<javax.ws.rs.core.Request,Iterator<TreeAcceptor>>>
Specified by:
apply in interface Stage<javax.ws.rs.core.Request,Iterator<TreeAcceptor>>
Specified by:
apply in interface TreeAcceptor


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