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

java.lang.Object
  extended by com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher
All Implemented Interfaces:
RequestDispatcher
Direct Known Subclasses:
VoidVoidDispatchProvider.VoidVoidMethodInvoker

public abstract class ResourceJavaMethodDispatcher
extends java.lang.Object
implements RequestDispatcher

Author:
Paul.Sandoz@Sun.Com

Field Summary
protected  JavaMethodInvoker invoker
           
protected  java.lang.reflect.Method method
           
 
Constructor Summary
ResourceJavaMethodDispatcher(AbstractResourceMethod abstractResourceMethod, JavaMethodInvoker invoker)
           
 
Method Summary
protected abstract  void _dispatch(java.lang.Object resource, HttpContext context)
           
 void dispatch(java.lang.Object resource, HttpContext context)
          Dispatch to the resource method of the resource class instance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

invoker

protected final JavaMethodInvoker invoker

method

protected final java.lang.reflect.Method method
Constructor Detail

ResourceJavaMethodDispatcher

public ResourceJavaMethodDispatcher(AbstractResourceMethod abstractResourceMethod,
                                    JavaMethodInvoker invoker)
Method Detail

dispatch

public final void dispatch(java.lang.Object resource,
                           HttpContext context)
Description copied from interface: RequestDispatcher
Dispatch to the resource method of the resource class instance.

Specified by:
dispatch in interface RequestDispatcher
Parameters:
resource - the resource class instance.
context - the HTTP context.

_dispatch

protected abstract void _dispatch(java.lang.Object resource,
                                  HttpContext context)
                           throws java.lang.reflect.InvocationTargetException,
                                  java.lang.IllegalAccessException
Throws:
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2014 Oracle Corporation. All Rights Reserved.