if (!supported.isEmpty() && !supported.contains(contentType)) {
unsupported("Request with media type [%s]. Expecting one of %s.", status, contentType, supported);
return;
}
Deserializer deserializer = deserializers.deserializerFor(contentType, container);
if (deserializer == null) {
unsupported("Unable to handle media type [%s]: no deserializer found.", status, contentType);
return;
}
Object[] deserialized = deserializer.deserialize(request.getInputStream(), method);
logger.debug("Deserialized parameters for {} are {} ", method, deserialized);
for (int i = 0; i < deserialized.length; i++) {
if (deserialized[i] != null) {
methodInfo.setParameter(i, deserialized[i]);