registers a mapping from extension to media type . an example of calling this method would be : mediatypes.registerextension `` xml '' , mediatype.application _ xml ; concode_field_sep MediaTypes instance concode_elem_sep MultiHashMap synonyms concode_elem_sep HashMap<String,MediaType> extensions concode_field_sep List<MediaType> getSynonyms concode_elem_sep String getExtensionForMediaType concode_elem_sep MediaType getMediaTypeForExtension concode_elem_sep void registerSynonym
void function ( String arg0 , MediaType arg1 ) { instance . extensions . put ( arg0 , arg1 ) ; }