|
|
|
@ -142,9 +142,12 @@ public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMe |
|
|
|
exchange.getAttributes().put(URI_TEMPLATE_VARIABLES_ATTRIBUTE, uriVariables); |
|
|
|
exchange.getAttributes().put(URI_TEMPLATE_VARIABLES_ATTRIBUTE, uriVariables); |
|
|
|
exchange.getAttributes().put(MATRIX_VARIABLES_ATTRIBUTE, matrixVariables); |
|
|
|
exchange.getAttributes().put(MATRIX_VARIABLES_ATTRIBUTE, matrixVariables); |
|
|
|
|
|
|
|
|
|
|
|
if (!info.getProducesCondition().getProducibleMediaTypes().isEmpty()) { |
|
|
|
ProducesRequestCondition producesCondition = info.getProducesCondition(); |
|
|
|
Set<MediaType> mediaTypes = info.getProducesCondition().getProducibleMediaTypes(); |
|
|
|
if (!producesCondition.isEmpty()) { |
|
|
|
exchange.getAttributes().put(PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, mediaTypes); |
|
|
|
Set<MediaType> mediaTypes = producesCondition.getProducibleMediaTypes(); |
|
|
|
|
|
|
|
if (!mediaTypes.isEmpty()) { |
|
|
|
|
|
|
|
exchange.getAttributes().put(PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, mediaTypes); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|