private Configuration getMimeTypeConfiguration ( ) { return new AbstractConfiguration ( ) { @ Override public void configure ( WebAppContext context ) throws Exception { MimeTypes mimeTypes = context . getMimeTypes ( ) ; for ( MimeMappings . Mapping mapping : getMimeMappings ( ) ) { mimeTypes . addMimeMapping ( mapping . getExtension ( ) , mapping . getMimeType ( ) ) ; } } } ; }
Create a configuration object that adds mime type mappings .