|Modifier and Type
|Interface and Description
Provider interface for creating a
method dispatcher instances.
Response dispatch(Object resource, ContainerRequest request) throws ProcessingException
invocable resource method via the configured
invocation handler using the provided resource class instance.
In summary, the main job of the dispatcher is to convert a request into
an array of the Java method input parameters and subsequently convert the
returned response of an arbitrary Java type to a JAX-RS
When the method is invoked, the dispatcher will extract the
Java method information from the invocable
resource method and use the information to retrieve the required input
parameters from either the request instance or any other available run-time
information. Once the set of input parameter values is computed, the underlying
invocation handler instance is invoked to process (invoke) the Java resource
method with the computed input parameter values. The returned response is
subsequently converted into a JAX-RS
Response type and returned
from the dispatcher.
It is assumed that the supplied resource implements the invocable method.
Dispatcher implementation should not need to do any additional checks in
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.