@ Deprecated public static String getContentMimeType ( final HttpEntity entity ) throws ParseException { if ( entity == null ) { throw new IllegalArgumentException ( "HTTP entity may not be null" ) ; } String mimeType = null ; if ( entity . getContentType ( ) != null ) { HeaderElement values [ ] = entity . getContentType ( ) . getElements ( ) ; if ( values . length > 0 ) { mimeType = values [ 0 ] . getName ( ) ; } } return mimeType ; }
Obtains mime type of the entity if known .