public abstract class ResourceJavaMethodDispatcher extends Object implements RequestDispatcher
Modifier and Type | Field and Description |
---|---|
protected JavaMethodInvoker |
invoker |
protected Method |
method |
Constructor and Description |
---|
ResourceJavaMethodDispatcher(AbstractResourceMethod abstractResourceMethod,
JavaMethodInvoker invoker) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
_dispatch(Object resource,
HttpContext context) |
void |
dispatch(Object resource,
HttpContext context)
Dispatch to the resource method of the resource class instance.
|
String |
toString() |
protected final JavaMethodInvoker invoker
protected final Method method
public ResourceJavaMethodDispatcher(AbstractResourceMethod abstractResourceMethod, JavaMethodInvoker invoker)
public final void dispatch(Object resource, HttpContext context)
RequestDispatcher
dispatch
in interface RequestDispatcher
resource
- the resource class instance.context
- the HTTP context.protected abstract void _dispatch(Object resource, HttpContext context) throws InvocationTargetException, IllegalAccessException
Copyright © 2013 Oracle Corporation. All rights reserved.