private String getRespData ( BroadcastResponse resp ) { StringBuilder respdata = new StringBuilder ( 400 ) ; if ( resp != null ) { Status status = resp . getStatus ( ) ; if ( null != status ) { respdata . append ( status . name ( ) ) ; respdata . append ( "-" ) ; respdata . append ( status . getNumber ( ) ) ; } String info = resp . getInfo ( ) ; if ( null != info && ! info . isEmpty ( ) ) { if ( respdata . length ( ) > 0 ) { respdata . append ( ", " ) ; } respdata . append ( "Additional information: " ) . append ( info ) ; } } return respdata . toString ( ) ; }
Build response details