protected static int getBodyIndex(MultivaluedMap<ParameterType, Parameter> map, OperationResourceInfo ori) { List<Parameter> list = map.get(ParameterType.REQUEST_BODY); int index = list == null || list.size() > 1 ? -1 : list.get(0).getIndex(); if (ori.isSubResourceLocator() && index != -1) { reportInvalidResourceMethod(ori.getMethodToInvoke(), "NO_BODY_IN_SUBRESOURCE"); } return index; }
private static int getBodyIndex(MultivaluedMap<ParameterType, Parameter> map, OperationResourceInfo ori) { List<Parameter> list = map.get(ParameterType.REQUEST_BODY); int index = list == null || list.size() > 1 ? -1 : list.get(0).getIndex(); if (ori.isSubResourceLocator() && index != -1) { reportInvalidResourceMethod(ori.getMethodToInvoke(), "NO_BODY_IN_SUBRESOURCE"); } return index; }
protected static int getBodyIndex(MultivaluedMap<ParameterType, Parameter> map, OperationResourceInfo ori) { List<Parameter> list = map.get(ParameterType.REQUEST_BODY); int index = list == null || list.size() > 1 ? -1 : list.get(0).getIndex(); if (ori.isSubResourceLocator() && index != -1) { reportInvalidResourceMethod(ori.getMethodToInvoke(), "NO_BODY_IN_SUBRESOURCE"); } return index; }
return null; if (ori.isSubResourceLocator()) { Class<?> cls = ori.getMethodToInvoke().getReturnType(); ClassResourceInfo subcri = ori.getClassResourceInfo().getSubResource(cls, cls);
return null; if (ori.isSubResourceLocator()) { Class<?> cls = ori.getMethodToInvoke().getReturnType(); ClassResourceInfo subcri = resource.getSubResource(cls, cls);
protected Object performInvocation(Exchange cxfExchange, final Object serviceObject, Method method, Object[] paramArray) throws Exception { Object response = null; if (endpoint.isPerformInvocation()) { response = super.performInvocation(cxfExchange, serviceObject, method, paramArray); } paramArray = insertExchange(method, paramArray, cxfExchange); OperationResourceInfo ori = cxfExchange.get(OperationResourceInfo.class); if (ori.isSubResourceLocator()) { // don't delegate the sub resource locator call to camel processor return method.invoke(serviceObject, paramArray); } Continuation continuation; if (!endpoint.isSynchronous() && (continuation = getContinuation(cxfExchange)) != null) { LOG.trace("Calling the Camel async processors."); return asyncInvoke(cxfExchange, serviceObject, method, paramArray, continuation, response); } else { LOG.trace("Calling the Camel sync processors."); return syncInvoke(cxfExchange, serviceObject, method, paramArray, response); } }
return null; if (ori.isSubResourceLocator()) { Class<?> cls = ori.getMethodToInvoke().getReturnType(); ClassResourceInfo subcri = ori.getClassResourceInfo().getSubResource(cls, cls);
boolean finalPath = StringUtils.isEmpty(finalGroup) || PATH_SEGMENT_SEP.equals(finalGroup); if (ori.isSubResourceLocator()) { candidateList.put(ori, map); if (finalPath) { BUNDLE, ori.getMethodToInvoke().getName(), ori.getClassResourceInfo().getServiceClass().getName()).toString()); if (!ori.isSubResourceLocator()) { MediaType responseMediaType = intersectSortMediaTypes(acceptContentTypes, ori.getProduceTypes(),
MultivaluedMap<String, String> map = new MetadataMap<String, String>(values); if (uriTemplate != null && uriTemplate.match(path, map)) { if (ori.isSubResourceLocator()) { candidateList.put(ori, map); added = true; resource.getServiceClass().getName()).toString()); if (!ori.isSubResourceLocator()) { MediaType responseMediaType = intersectSortMediaTypes(acceptContentTypes, ori.getProduceTypes(),
if (!ori.isSubResourceLocator() && JAXRSUtils.runContainerRequestFilters(providerFactory, message,
if (!ori.isSubResourceLocator() && JAXRSUtils.runContainerRequestFilters(providerFactory, message,
.setThreadContextClassloader(resourceObject.getClass().getClassLoader()); if (!ori.isSubResourceLocator()) { asyncResponse = (AsyncResponseImpl)inMessage.get(AsyncResponse.class); if (asyncResponse == null && !ori.isSubResourceLocator()) { asyncResponse = checkFutureResponse(inMessage, checkResultObject(result)); if (ori.isSubResourceLocator()) { try { MultivaluedMap<String, String> values = getTemplateValues(inMessage); inMessage.put(URITemplate.TEMPLATE_PARAMETERS, values); if (!subOri.isSubResourceLocator() && JAXRSUtils.runContainerRequestFilters(providerFactory, inMessage,
handleCookies(m, params, paramHeaders, beanParamsList, types); if (ori.isSubResourceLocator()) { ClassResourceInfo subCri = cri.getSubResource(m.getReturnType(), m.getReturnType()); if (subCri == null) {
handleCookies(m, params, paramHeaders, beanParamsList, types); if (ori.isSubResourceLocator()) { ClassResourceInfo subCri = cri.getSubResource(m.getReturnType(), m.getReturnType()); if (subCri == null) {
handleCookies(m, params, paramHeaders, beanParamsList, types); if (ori.isSubResourceLocator()) { ClassResourceInfo subCri = cri.getSubResource(m.getReturnType(), m.getReturnType()); if (subCri == null) {
if (!ori.isSubResourceLocator()) { asyncResponse = (AsyncResponseImpl)inMessage.get(AsyncResponse.class); if (ori.isSubResourceLocator()) { try { MultivaluedMap<String, String> values = getTemplateValues(inMessage); inMessage.put(URITemplate.TEMPLATE_PARAMETERS, values); if (!subOri.isSubResourceLocator() && JAXRSUtils.runContainerRequestFilters(providerFactory, inMessage,