/** * Tries to determine the appropriate file format based on the a MIME * type that describes the content type. * * @param mimeType * A MIME type, e.g. "text/html". * @return An {@link PropertiesFormat} object if the MIME type was recognized, or * <tt>null</tt> otherwise. * @see #forMIMEType(String,PropertiesFormat) * @see #getMIMETypes() */ public static PropertiesFormat forMIMEType(final String mimeType) { return forMIMEType(mimeType, null); }
/** * Tries to determine the appropriate file format based on the a MIME * type that describes the content type. * * @param mimeType * A MIME type, e.g. "text/html". * @return An {@link PropertiesFormat} object if the MIME type was recognized, or * <tt>null</tt> otherwise. * @see #forMIMEType(String,PropertiesFormat) * @see #getMIMETypes() */ public static PropertiesFormat forMIMEType(final String mimeType) { return forMIMEType(mimeType, null); }
log.info("Request body: " + contentType); final PropertiesFormat format = PropertiesFormat.forMIMEType(contentType);
log.info("Request body: " + contentType); final PropertiesFormat format = PropertiesFormat.forMIMEType(contentType);
log.info("Request body: " + contentType); final PropertiesFormat format = PropertiesFormat.forMIMEType(contentType);
log.info("Request body: " + contentType); final PropertiesFormat format = PropertiesFormat.forMIMEType(contentType);
.forMIMEType(t.getMimeType());
.forMIMEType(t.getMimeType());
.forMIMEType(contentType);
.forMIMEType(contentType);
final PropertiesFormat format = PropertiesFormat.forMIMEType(mimeType.getMimeType());
final PropertiesFormat format = PropertiesFormat.forMIMEType(mimeType.getMimeType());