public String buildMailtoContent ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( email ) ; if ( StringUtils . isNotEmpty ( subject ) ) { sb . append ( "?" ) . append ( "subject" ) . append ( "=" ) . append ( subject ) ; } if ( StringUtils . isNotEmpty ( body ) ) { sb . append ( StringUtils . isNotEmpty ( subject ) ? "&" : "?" ) . append ( "body" ) . append ( "=" ) . append ( body ) ; } return sb . toString ( ) . trim ( ) ; }
Builds the mailto content .