@ Override public BodyParser getBodyParserEngineForContentType ( String contentType ) { for ( BodyParser parser : parsers ) { if ( parser . getContentTypes ( ) . contains ( contentType ) ) { return parser ; } } LoggerFactory . getLogger ( this . getClass ( ) ) . info ( "Cannot find a body parser for " + contentType ) ; return null ; }
Gets the body parser that can be used to parse a body with the given content type .