com.sun.jersey.server.impl.model.method.dispatch
Class AbstractResourceMethodDispatchProvider

java.lang.Object
  extended by com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider
All Implemented Interfaces:
ResourceMethodDispatchProvider
Direct Known Subclasses:
EntityParamDispatchProvider, FormDataMultiPartDispatchProvider, FormDispatchProvider

public abstract class AbstractResourceMethodDispatchProvider
extends Object
implements ResourceMethodDispatchProvider

A partial implementation of ResourceMethodDispatchProvider that creates instances of RequestDispatcher.

Implementing classes are required to override the getInjectableValuesProvider(com.sun.jersey.api.model.AbstractResourceMethod) method to return a InjectableValuesProvider associated with the parameters of the abstract resource method.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
AbstractResourceMethodDispatchProvider()
           
 
Method Summary
 RequestDispatcher create(AbstractResourceMethod abstractResourceMethod)
          Create a RequestDispatcher for a resource method of a resource.
protected  ServerInjectableProviderContext getInjectableProviderContext()
          Get the server-specific injectable provider context.
protected abstract  InjectableValuesProvider getInjectableValuesProvider(AbstractResourceMethod abstractResourceMethod)
          Get the injectable values provider for an abstract resource method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceMethodDispatchProvider

public AbstractResourceMethodDispatchProvider()
Method Detail

create

public RequestDispatcher create(AbstractResourceMethod abstractResourceMethod)
Description copied from interface: ResourceMethodDispatchProvider
Create a RequestDispatcher for a resource method of a resource.

Specified by:
create in interface ResourceMethodDispatchProvider
Parameters:
abstractResourceMethod - the abstract resource method.
Returns:
the request dispatcher, otherwise null if it could not be created for the abstract resource method.

getInjectableProviderContext

protected ServerInjectableProviderContext getInjectableProviderContext()
Get the server-specific injectable provider context.

Returns:
the server-specific injectable provider context

getInjectableValuesProvider

protected abstract InjectableValuesProvider getInjectableValuesProvider(AbstractResourceMethod abstractResourceMethod)
Get the injectable values provider for an abstract resource method.

Parameters:
abstractResourceMethod - the abstract resource method.
Returns:
the injectable values provider, or null if no injectable values can be created for the parameters of the abstract resource method.


Copyright © 2013 Oracle Corporation. All Rights Reserved.