final RestLiCallback<Object> restLiCallback =
new RestLiCallback<Object>(request, null, _responseHandler, callback, null, null);
restLiCallback.onError(e, createEmptyExecutionReport());
return;
}
final RoutingResult method;
try
{
method = _router.process(request, requestContext);
}
catch (Exception e)
{
final RestLiCallback<Object> restLiCallback =
new RestLiCallback<Object>(request, null, _responseHandler, callback, null, null);
restLiCallback.onError(e, createEmptyExecutionReport());
return;
}
final RequestExecutionCallback<RestResponse> wrappedCallback = notifyInvokeAwares(method, callback);
final FilterRequestContextInternal filterContext =
new FilterRequestContextInternalImpl((ServerResourceContext) method.getContext(), method.getResourceMethod());
final RestLiCallback<Object> restLiCallback =
new RestLiCallback<Object>(request, method, _responseHandler, wrappedCallback, _responseFilters, filterContext);
try
{
_methodInvoker.invoke(method, request, restLiCallback, isDebugMode, filterContext);