MediaTypes

API

MediaTypes.java
class MediaTypes {
  MediaType parse(String type)     (1)
}
1 parse(String)

Same as MediaType.valueOf(type) , but with fallback in case MediaType.valueOf(type) throws an IllegalArgumentException.

Members

parse(String)

Same as MediaType.valueOf(type) , but with fallback in case MediaType.valueOf(type) throws an IllegalArgumentException.

The fallback is to retry with some special characters replaces in String type .