public String describeAllowedMimeTypes ( ) { if ( bindingMIMETypes == null || bindingMIMETypes . length == 0 ) { return ANY_MIME_TYPE ; } StringBuffer out = new StringBuffer ( ) ; for ( int i = 0 ; i < bindingMIMETypes . length ; i ++ ) { String allowed = bindingMIMETypes [ i ] ; if ( allowed == null ) { return ANY_MIME_TYPE ; } if ( allowed . equals ( "*/*" ) ) { return ANY_MIME_TYPE ; } if ( allowed . equals ( "*" ) ) { return ANY_MIME_TYPE ; } if ( i > 0 ) { if ( i < bindingMIMETypes . length - 1 ) { out . append ( ", " ) ; } else { if ( i > 1 ) { out . append ( "," ) ; } out . append ( " or " ) ; } } out . append ( allowed ) ; } return out . toString ( ) ; }
In human readable string describe which mime types are allowed .