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

java.lang.Object
  extended by com.sun.jersey.server.impl.model.method.dispatch.HttpReqResDispatchProvider
All Implemented Interfaces:
ResourceMethodCustomInvokerDispatchProvider, ResourceMethodDispatchProvider

public class HttpReqResDispatchProvider
extends java.lang.Object
implements ResourceMethodDispatchProvider, ResourceMethodCustomInvokerDispatchProvider

A dispatch provider implementation that answers to methods with a return definition of void, receiving only HttpRequestContext and HttpResponseContext (a service alike method).

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
HttpReqResDispatchProvider()
           
 
Method Summary
 RequestDispatcher create(AbstractResourceMethod abstractResourceMethod)
          Create a RequestDispatcher for a resource method of a resource.
 RequestDispatcher create(AbstractResourceMethod abstractResourceMethod, JavaMethodInvoker invoker)
          Create a RequestDispatcher for a resource method of a resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpReqResDispatchProvider

public HttpReqResDispatchProvider()
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.

create

public RequestDispatcher create(AbstractResourceMethod abstractResourceMethod,
                                JavaMethodInvoker invoker)
Description copied from interface: ResourceMethodCustomInvokerDispatchProvider
Create a RequestDispatcher for a resource method of a resource.

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


Copyright © 2014 Oracle Corporation. All Rights Reserved.