5151import org .apache .commons .lang3 .exception .ExceptionUtils ;
5252import org .apache .commons .lang3 .math .NumberUtils ;
5353
54+ import com .mirth .connect .client .core .BrandingConstants ;
5455import com .mirth .connect .client .core .Client ;
5556import com .mirth .connect .client .core .ClientException ;
5657import com .mirth .connect .client .core .ListHandlerException ;
@@ -191,7 +192,7 @@ private void runShell(String server, String user, String password, String script
191192 } catch (Exception e ) {
192193 }
193194
194- out .println ("Connected to Mirth Connect server @ " + server + " (" + serverVersion + ")" );
195+ out .println (String . format ( "Connected to %s Server @ %s (%s)" , BrandingConstants . PRODUCT_NAME , server , serverVersion ) );
195196 currentUser = StringUtils .defaultString (loginStatus .getUpdatedUsername (), user );
196197
197198 if (script != null ) {
@@ -569,7 +570,7 @@ private void commandHelp(Token[] arguments) {
569570 out .println ("user add username \" password\" \" firstName\" \" lastName\" \" organization\" \" email\" \n \t Adds the specified user\n " );
570571 out .println ("user remove id|username\n \t Removes the specified user\n " );
571572 out .println ("user changepw id|username \" newpassword\" \n \t Changes the specified user's password\n " );
572- out .println ("quit\n \t Quits Mirth Connect Shell" );
573+ out .println (String . format ( "quit\n \t Quits %s Shell" , BrandingConstants . PRODUCT_NAME ) );
573574 }
574575
575576 private void commandUserList (Token [] arguments ) throws ClientException {
@@ -1851,7 +1852,7 @@ private void commandDumpEvents(Token[] arguments) throws ClientException {
18511852 dumpFilename = replaceValues (dumpFilename );
18521853
18531854 StringBuilder builder = new StringBuilder ();
1854- builder .append ("Mirth Connect Event Log Dump: " + (new Date ()).toString () + " \n " );
1855+ builder .append (String . format ( "%s Event Log Dump: %s \n " , BrandingConstants . PRODUCT_NAME , (new Date ()).toString ()) );
18551856 builder .append (ServerEvent .getExportHeader () + "\n " );
18561857
18571858 File dumpFile = new File (dumpFilename );
@@ -1898,7 +1899,7 @@ private void commandDumpStats(Token[] arguments) throws ClientException {
18981899 dumpFilename = replaceValues (dumpFilename );
18991900
19001901 StringBuilder builder = new StringBuilder ();
1901- builder .append ("Mirth Connect Channel Statistics Dump: " + (new Date ()).toString () + " \n " );
1902+ builder .append (String . format ( "%s Channel Statistics Dump: %s \n " , BrandingConstants . PRODUCT_NAME , (new Date ()).toString ()) );
19021903 builder .append ("Name, Received, Filtered, Queued, Sent, Errored\n " );
19031904
19041905 List <DashboardStatus > channelStatuses = client .getAllChannelStatuses ();
@@ -2100,4 +2101,4 @@ private void removeInvalidItems(List<?> list, Class<?> expectedClass) {
21002101 }
21012102 }
21022103 }
2103- }
2104+ }
0 commit comments