final String contentType = MediaType.WILDCARD; final MediaType acceptType = MediaType.WILDCARD_TYPE; OperationResourceInfo ori = JAXRSUtils.findTargetMethod(matchedResources, m, httpMethod, values, contentType,
final String contentType = MediaType.WILDCARD; final MediaType acceptType = MediaType.WILDCARD_TYPE; OperationResourceInfo ori = JAXRSUtils.findTargetMethod(resource, m, httpMethod, values, contentType,
final String contentType = MediaType.WILDCARD; final MediaType acceptType = MediaType.WILDCARD_TYPE; OperationResourceInfo ori = JAXRSUtils.findTargetMethod(matchedResources, m, httpMethod, values, contentType,
public static OperationResourceInfo findTargetMethod( Map<ClassResourceInfo, MultivaluedMap<String, String>> matchedResources, Message message, String httpMethod, MultivaluedMap<String, String> matchedValues, String requestContentType, List<MediaType> acceptContentTypes, boolean throwException, boolean recordMatchedUri) { //CHECKSTYLE:ON final boolean getMethod = HttpMethod.GET.equals(httpMethod); MediaType requestType; try { requestType = toMediaType(requestContentType); } catch (IllegalArgumentException ex) { throw ExceptionUtils.toNotSupportedException(ex, null); } SortedMap<OperationResourceInfo, MultivaluedMap<String, String>> candidateList = new TreeMap<OperationResourceInfo, MultivaluedMap<String, String>>( new OperationResourceInfoComparator(message, httpMethod, getMethod, requestType, acceptContentTypes)); int pathMatched = 0; int methodMatched = 0; int consumeMatched = 0; List<OperationResourceInfo> finalPathSubresources = null; for (Map.Entry<ClassResourceInfo, MultivaluedMap<String, String>> rEntry : matchedResources.entrySet()) {
ori = JAXRSUtils.findTargetMethod(matchedResources, message, httpMethod, matchedValues, requestContentType, acceptContentTypes, true, true); setExchangeProperties(message, exchange, ori, matchedValues, resources.size());
if (ori == null && !operChecked) { try { ori = JAXRSUtils.findTargetMethod(resource, message, httpMethod, values, requestContentType, acceptContentTypes, false); ori = JAXRSUtils.findTargetMethod(resource, message, httpMethod, values, requestContentType, acceptContentTypes, true); setExchangeProperties(message, ori, values, resources.size());
OperationResourceInfo subOri = JAXRSUtils.findTargetMethod( Collections.singletonMap(subCri, values), inMessage,
OperationResourceInfo subOri = JAXRSUtils.findTargetMethod(subCri, inMessage, httpMethod,