public static boolean matchConsumes ( InternalRoute route , InternalRequest < ? > request ) { if ( route . getConsumes ( ) . contains ( WILDCARD ) ) { return true ; } return route . getConsumes ( ) . contains ( request . getContentType ( ) ) ; }
Matches route consumes configurer and Content - Type header in an incoming provider