public void addMimeMapping ( final WebAppMimeMapping mimeMapping ) { NullArgumentException . validateNotNull ( mimeMapping , "Mime mapping" ) ; NullArgumentException . validateNotNull ( mimeMapping . getExtension ( ) , "Mime mapping extension" ) ; NullArgumentException . validateNotNull ( mimeMapping . getMimeType ( ) , "Mime mapping type" ) ; mimeMappings . add ( mimeMapping ) ; }
Add a mime mapping .