Rearranges pz2/sp client logic to isolate error messaging
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / commands / Pazpar2Command.java
index 8176512..73fd075 100644 (file)
@@ -25,7 +25,7 @@ public abstract class Pazpar2Command implements Serializable  {
       \r
   public abstract Pazpar2Command copy ();\r
   \r
-  public String getName() {\r
+  public String getCommandName() {\r
     return name;\r
   }\r
     \r
@@ -144,7 +144,7 @@ public abstract class Pazpar2Command implements Serializable  {
     if (stateMgr != null) {\r
       stateMgr.checkIn(command);\r
     } else {\r
-      logger.info("Command '" + command.getName() + "' not affecting state (history) as no state manager was defined for this command.");\r
+      logger.info("Command '" + command.getCommandName() + "' not affecting state (history) as no state manager was defined for this command.");\r
     }\r
   }\r
   \r