add a mapping from a key , extracted from a path extension or a query parameter , to a mediatype . this is required in order for the parameter strategy to work . any extensions explicitly registered here are also whitelisted for the purpose of reflected file download attack detection see spring framework reference documentation for more details on rfd attack protection . the path extension strategy will also use the org.springframework.http.mediatypefactory to resolve pathextensions . concode_field_sep boolean favorParameter concode_elem_sep Boolean useRegisteredExtensionsOnly concode_elem_sep String parameterName concode_elem_sep RequestedContentTypeResolver contentTypeResolver concode_elem_sep boolean favorPathExtension concode_elem_sep boolean ignoreUnknownPathExtensions concode_elem_sep Map<String,MediaType> mediaTypes concode_elem_sep boolean ignoreAcceptHeader concode_field_sep RequestedContentTypeResolverBuilder ignoreAcceptHeader concode_elem_sep RequestedContentTypeResolverBuilder defaultContentTypeResolver concode_elem_sep RequestedContentTypeResolverBuilder mediaTypes concode_elem_sep RequestedContentTypeResolverBuilder ignoreUnknownPathExtensions concode_elem_sep RequestedContentTypeResolverBuilder useRegisteredExtensionsOnly concode_elem_sep RequestedContentTypeResolverBuilder favorPathExtension concode_elem_sep CompositeContentTypeResolver build concode_elem_sep RequestedContentTypeResolverBuilder mediaType concode_elem_sep RequestedContentTypeResolverBuilder parameterName concode_elem_sep RequestedContentTypeResolverBuilder favorParameter concode_elem_sep RequestedContentTypeResolverBuilder defaultContentType
RequestedContentTypeResolverBuilder function ( Map < String , MediaType > arg0 ) { if ( ! CollectionUtils . isEmpty ( arg0 ) ) { for ( Map . Entry < String , MediaType > loc0 : arg0 . entrySet ( ) ) { String loc1 = loc0 . getKey ( ) . toLowerCase ( Locale . ENGLISH ) ; this . mediaTypes . put ( loc1 , loc0 . getValue ( ) ) ; } } return this ; }