public static boolean matchProduces ( InternalRoute route , InternalRequest < ? > request ) { if ( nonEmpty ( request . getAccept ( ) ) ) { List < MediaType > matchedAcceptTypes = getAcceptedMediaTypes ( route . getProduces ( ) , request . getAccept ( ) ) ; if ( nonEmpty ( matchedAcceptTypes ) ) { request . setMatchedAccept ( matchedAcceptTypes . get ( 0 ) ) ; return true ; } } return false ; }
Matches route produces configurer and Accept - header in an incoming provider