public String messageAsText ( ) { if ( protocol . charset ( ) . isPresent ( ) ) { return message . decodeString ( protocol . charset ( ) . get ( ) ) ; } else { return Base64 . getEncoder ( ) . encodeToString ( message . toArray ( ) ) ; } }
Get the message as text .