public interface RootResourceExecutor
Modifier and Type | Method and Description |
---|---|
MethodResponse |
execute(HttpRequest request,
Object resource,
String subResourcePath,
Map<String,String> pathParams)
Handles a
HttpRequest on a resource method of a provided
jaxrs root resource. |
MethodResponse execute(HttpRequest request, Object resource, String subResourcePath, Map<String,String> pathParams) throws ResourceMethodException
HttpRequest
on a resource method of a provided
jaxrs root resource. The resource method is specified through a
PathMatching
object.
The subResourcePath is the path of the resource method, that should be called.
The argument pathParams is a Map
that contains name-value
pairs of path parameter of the resource class.
The RootResourceExecutor service enables resources to
delegate the request to other resources. Implementations typically
require HttpRequest to be an instance generated by the implementation itself.
The invoking resource method gets a suitable instance of
HttpRequest
via injection with the @Context annotation.request
- resource
- subResourcePath
- pathParams
- the path-parameters, additional to those in subResourcePathResourceMethodException
- wrapping a checked or unchecked exception of
the invoked resource methodCopyright © 2014 The Apache Software Foundation. All Rights Reserved.